Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor
New user
uploaded files
|
(linux_command_line)-> Apache logfile config to include domain name |
submited by Russell Thu 07 Jul 05 |
I am running a webserver that has a lot of virtual domains mapped to the same virtual host. ( currently a place holder) and I wanted to update the log file so that it indicate the domain name requested. The Apache Logfile formats do not list a 'domain requested' field. (it does have a 'server name' but this appears to map to the 'hostname' of the server. ( that is the name of the physical box) Now it may be possible to change something so that value yields what I want but I figured another way to do it.
LogFormat "%{HOST}i %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
The first field in the log now contains the actual domain name requested. This displays the actual header line the client sends me.
|
Add comment or question...:
|