Forum Moderators: phranque
My folder heiarchy looks like:
wwwpub/cataclypse (my site)
wwwpub/ams (his site)
And I was wondering if there were a way to set up seperate log files for each of our sites instead of logging everything into the one access log.
Much Appreciated,
~Raenef
SetEnvIf Request_URI "^/ams(/¦$)" ams_request
SetEnvIf Request_URI "^/cataclypse(/¦$)" cataclypse_request
CustomLog logs/ams-requests.log common env=ams_request
CustomLog logs/cataclypse-requests.log common env=cataclypse_request
Make sense?
If neither of these are the case, please post the relavent sections of your httpd.conf (but please, not all of it! =) ).
commented out all virtual hosting parts since I never use them anyways.
Heres the logging section of my httpd (not including the commented out sections to reduce size)if you need to see other parts of it let me know:
ErrorLog logs/error.log
CustomLog logs/access.log common
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# Subdirectory Logging
SetEnvIf Request_URI "^/ams(/¦$)" ams_request
SetEnvIf Request_URI "^/cataclypse(/¦$)" cataclypse_request
CustomLog logs/ams-requests.log common env=ams_request
CustomLog logs/cataclypse-requests.log common env=cataclypse_request