Recording X-Forwarded-For header in HTTP request

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

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[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