Forum Moderators: phranque

Message Too Old, No Replies

log file directives

         

bbxrider

9:31 am on Nov 22, 2010 (gmt 0)

10+ Year Member



I have a test apache2 install with about 6ish virtual sites. I want to use the one common log file and was looking for a log file directive that would indicate which of the virtual sites is being accessed, either its directory, or domain name. The %U doesn't help since since almost all the URL paths are index.php and it doesn't have the path, eg.
...htdocs/virtualHomeDirectory/ where the index.php is actually located.
There is the %{someEnvironmentVariable}e but I'm not finding what the available environment variables are or if I can define my own custom one with the info I'm looking for.

jdMorgan

7:26 pm on Nov 30, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use the "e" switch to log the HTTP_HOST request header, which will contain the requested "domain name."

Jim