httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tapas Mishra <mightydre...@gmail.com>
Subject [users@httpd] Recording X-Forwarded-For header in HTTP request
Date Thu, 03 Jun 2010 14:14:36 GMT
Hi,
 I am using a CentOS 5.5 server as a backend for one of my websites.On
a Ubuntu Reverse Proxy.
After reading documentation
[url=http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats]Apache
Log Format documentation[/url]

I added in
[code]
/etc/httpd/conf/httpd.conf
[/code]
a Line

[code]
LogFormat "%v %{X-Forwarded-For}i %D %l %u %t \"%r\" %>s %b" resp
[/code]

and in VirtualHost section added
[code]
CustomLog /var/log/httpd/site_in_question-resp_log resp
[/code]

restarted httpd and checked the logs
to my surprise I did not found any thing in
[code]
CustomLog /var/log/httpd/site_in_question-resp_log resp
[/code]
Did I do some mistake above ?
Or what is the correct way to get X-Forwarded-For header.

-- 
Tapas

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message