Home Contact Us Search

[ Order a Server ] [ Server Support ]


[ Getting Started ] [ Server Help ] [ Add on Help ] [ Solution ] [ Trouble Shooting ]

PLEASE NOTE, THIS IS VERY OLD ARCHIVE INFORMATION AND MAY NOT FUNCTION ON NEW SERVERS

[ DNS ] [ Email ] [ Server Admin ] [ Web Server ]

Changing the Web Server Log Format

By default your Virtual Server Apache Web Server logs 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 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

After making the changes above, be sure to restart your web server.

% restart_apache

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.

[ DNS ] [ Email ] [ Server Admin ] [ Web Server ]

PLEASE NOTE, THIS IS OLD ARCHIVE INFORMATION AND MAY NOT FUNCTION ON NEW SERVERS