Home   |   Products   |   Order   |   Support   |   ? !1 UK Web Hosting

Changing Your Web Server Log File Format
By default your Web Server Log Files are in the Combined Log Format. All access, agent, and referer information is logged to the ~/www/logs/access_log file.

You can change the web server log file format to the Common Log Format (separate log files for the access, agent, and referer data) 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

You can also define your own log format by modifying the LogFormat directive above. After making the changes above, be sure to Restart Your Web Server.

More Information
For more information about web server log file formats, see the following.

Site Map  |  Contact Us!
Copyright © 1998-2001 Bright Builders, Inc. All rights reserved.
Last Modified: Wed Mar 28 21:42:49 2001 GMT
Page Built: Mon Jul 2 19:55:49 2001 GMT

A L S O  S E E
· Apache Web Server
· Virtual Server Help