RE: apache remote host/ip is not logged in access log file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi;

 

Use this

 

   LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

 

In place of

 

LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined

 

Thanks

Narendra Verma

 

-----Original Message-----
From: Yogish Baliga [mailto:baliga@xxxxxxxxx]
Sent:
Friday, April 04, 2008 2:30 PM
To:
users@xxxxxxxxxxxxxxxx
Subject: apache remote host/ip is not logged in access log file

 

Hello all,

  My configuration look like this:

LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined
CustomLog "|/usr/sbin/rotatelogs /home/y/logs/httpd/access_log-%Y-%m-%d-%H 3600" combined

This is not logging the remote ip address, instead is logged as "::" as follows:

:: - - [
04/Apr/2008:01:23:40 -0700] "GET /status.html HTTP/1.0" 404 296 "-" "-" 203
:: - - [04/Apr/2008:01:23:40 -0700] "GET /status.html HTTP/1.0" 404 296 "-" "-" 107

Any clue on what configuration change required?

I am running httpd-2.0.59 on RHEL4.

Other configuration parameters:

ServerName localhost
Listen 8081
HostnameLookups off

Thanx,
-- baliga


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux