GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Web Server Log File Format

bullet 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.

 

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


Toll Free 1-866-GSP-4400 • 1-301-464-9363 • service@gsp.com
Copyright © 1994-2016 GSP Services, Inc.