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:[EMAIL PROTECTED]
Sent: Friday, April 04, 2008 2:30 PM
To: [email protected]
Subject: [EMAIL PROTECTED] 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