Kangry.com [insert cool graphic here]
home | Topics | Logout | Search | Contact | ?? Kangry ?? | Bandwitdh
Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor

Name

Password

New user

uploaded files
(linux_command_line)-> Apache logfile config to include domain name submited by Russell Thu 07 Jul 05
Web kangry.com
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...:
Subject:
Submited by: NOT email address. Leave blank for anonymous    (Spam Policy)

Enter Text: (text must match image for posting)




This file (the script that presented the data, not the data itself) , last modified Tuesday 06th of March 2018 11:41:12 PM
your client: claudebot
current time: Thursday 18th of April 2024 08:56:48 PM