Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #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, gets web1_transfer_log gets web2_transfer_log

    I want those transfer logs to include some information, for example: - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "" "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 "" (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
    Brno, Czech republic
    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