1 |
On Wed, 2 Nov 2005, Grant wrote: |
2 |
|
3 |
> Is there any way to get apache2 to include a full path in its |
4 |
> access_log? That would be something like this: |
5 |
> |
6 |
> domain.com/page.html |
7 |
> |
8 |
> instead of this: |
9 |
> |
10 |
> /page.html |
11 |
> |
12 |
> If I can get a full path in the log, I can have webalizer report on |
13 |
> traffic per domain. The conventional method of using the vhost log |
14 |
> format for something like this won't work for me because it relies on |
15 |
> defining different ServerName directives via VirtualHost definitions |
16 |
> but I don't think apache knows which domain is actually being served. |
17 |
> I don't use any apache virtual host stuff. Domain identification is |
18 |
> handled by my shopping cart software. |
19 |
|
20 |
Maybe I dont understand what you mean: but since you are using |
21 |
VirtualHost definitions, then perhaps you could use separate logs for |
22 |
each site? |
23 |
|
24 |
e.g. |
25 |
|
26 |
<VirtualHost site1.com> |
27 |
ServerName www.site1.com |
28 |
ErrorLog "/var/log/apache/site1_error.log" |
29 |
AccessLog "/var/log/apache/site2_access.log" |
30 |
</VirtualHost> |
31 |
|
32 |
<VirtualHost site2.com> |
33 |
ServerName www.site2.com |
34 |
ErrorLog "/var/log/apache/site1_error.log" |
35 |
AccessLog "/var/log/apache/site2_access.log" |
36 |
</VirtualHost> |
37 |
|
38 |
I just avoid the whole logsplit issue by doing this on production servers. |
39 |
|
40 |
|
41 |
-- |
42 |
|
43 |
-- |
44 |
gentoo-user@g.o mailing list |