Administration
  Home arrow Administration arrow Page 5 - Getting More Out Of Apache (Part 2)
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

Getting More Out Of Apache (Part 2)
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2001-01-23

    Table of Contents:
  • Getting More Out Of Apache (Part 2)
  • Eyes Only
  • Identity Check
  • Grouping Things Together
  • Timmmmmmbbbbberrrr!
  • When Things Go Wrong
  • Just Rewrite It!
  • Putting It Into Practice

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Getting More Out Of Apache (Part 2) - Timmmmmmbbbbberrrr!
    (Page 5 of 8 )

    You may not know this, but Apache comes with some pretty impressive loggingcapabilities, which allow you to record demographic information aboutvisitors to your Web site. And these logging capabilities can be customizedto deliver exactly the information you need for later analysis.

    Apache comes with two types of logs: there's the "access log", which trackseach and every request made to the Web server, and the "error log", whichtracks internal server errors, missing file and the like. There are anumber of configuration directives in the "httpd.conf" file which allow youto control Apache's default logging behaviour.

    The ErrorLog directive specifies the location of the error log.

    ErrorLog logs/error.log
    The CustomLog directive specifies the location of the server's access log,together with a format for the log file (as defined in the LogFormatdirective). The default setting is the Common Logfile Format, whichplaces each request on a separate line; this format records the IP address,the date and time, the bytes sent, and the first line of the client request.

    LogFormat "%h %l %u %t \"%r\" %>s %b" common CustomLog logs/access.log common
    The variables that you see in the LogFormat directive are server variablesthat return various identifiers for each client request - you can use theseto create your own log format. More information about each variabledoes can be obtained from the Apache manual athttp://httpd.apache.org/docs/mod/mod_log_config.html#customlog , or fromthe list below.

    %h - requesting host

    %b - bytes sent

    %{VARNAME}e - value of environment variable VARNAME

    %t - timestamp

    %h - remote host

    %T - time taken to serve request (seconds)

    %U - URL requested

    %s - return code for request

    %{User-agent}I - remote user agent identifier

    More Administration Articles
    More By icarus, (c) Melonfire


     

       

    ADMINISTRATION ARTICLES

    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway