Last Updated: January 21, 2000
| Changing Your Virtual Server Log Format |
You can change the web server log format to the Common Log Format by modifying your web server configuration file (~/www/conf/httpd.conf) like this:
# common log format
LogFormat "%h %l %u %t \"%r\" %s %b"
# combined log format
#LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\""
# The location of the access logfile
# If this does not start with /, ServerRoot is prepended to it.
TransferLog logs/access_log
# If you would like to have a separate agent and referer logfile
# uncomment the following directives.
RefererLog logs/referer_log
AgentLog logs/agent_log
After making the changes above, the web server will log access, agent, and referer information to separate logfiles, in the Common Log Format.
You can
also define your own log format by modifying the
LogFormat
directive above. See Module
mod_log_config at the Apache Web site for more details.
Copyright © 1996-2000, Last Modified: 21 January 2000A Little Technology Shoppe, LLC (ALTS.NET)®. All rights reserved. All brand names and product names used on these web pages are trademarks, or trade names of their respective holders.