The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

log files contain no referral information

Discussion in 'General Discussion' started by Jorel, Nov 6, 2003.

  1. Jorel

    Jorel Well-Known Member

    Joined:
    Aug 15, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    As the subject says, my log files apparently do not contain any referall information because when Awstats or Urchin run, they can't produce any referall info. I think my logfiles might be in the wrong format. How do I change this?
     
  2. Jorel

    Jorel Well-Known Member

    Joined:
    Aug 15, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Here's a portion of my httpd.conf file, if it helps.

    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog /usr/local/apache/logs/access_log common

    #
    # If you would like to have agent and referer logfiles, uncomment the
    # following directives.
    #
    CustomLog /usr/local/apache/logs/referer_log referer
    CustomLog /usr/local/apache/logs/agent_log agent

    #
    # If you prefer a single logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog /usr/local/apache/logs/access_log combined
     
Loading...

Share This Page