Find the answer to your Linux question:
Results 1 to 2 of 2
I have an Apache Web Server intalled on my Fedora system. It hosts some website and creates a different log file for each website. for example, www.web1.com gets web1_transfer_log www.web2.com ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2005
    Posts
    1

    Logs on apache web server


    I have an Apache Web Server intalled on my Fedora system.
    It hosts some website and creates a different log file for each website.
    for example, www.web1.com gets web1_transfer_log
    www.web2.com gets web2_transfer_log

    I want those transfer logs to include some information, for example:
    127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"

    I've set my log format like this:
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{User-Agent}i\" \"%{Referer}i\"" common
    LogFormat "%h %l %u %t %{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent

    However, my log doesn't include the 'frank' or the "www.example.com/start.html" (the referer).

    Here are some more lines from my httpd.conf:
    CustomLog /etc/httpd/logs/access_log common
    CustomLog /etc/httpd/logs/referer_log referer

    what do you think?

  2. #2
    Just Joined! srerucha's Avatar
    Join Date
    Jun 2005
    Location
    Brno, Czech republic
    Posts
    58
    I think you need the client to be authorized using http authentication to see "frank" in your logs. To see referrers, you have to click-thru from any page that links to your website.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •