Re: mod_status ans X-Real-IP?

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

 



Tom Evans wrote:
2010/3/22 Vladimir Dvorak - mailinglists <vladimir.dvorak@xxxxxxxxxx>:
Hello to all,

i need to view /server-status;  problem is that my Apache is behind the http
proxy (nginx) and status page shows only IP of proxy, not the IP of original
host.

Is there any possibility to "patch" mod_status.c (or anything else?) to be
able to show X-Real-IP variable? (I pass X-Real-IP in HTTP header to
Apache).

Thank you in advance for your suggestions.

Vladimir


mod_rpaf2 or mod_remoteip can be configured to do this. It won't patch
mod_status, it will make the request appear to come from the client IP
in all cases.

Cheers

Tom

---------------------------------------------------------------------
Thank you Tom for your hint. mod_rpaf2 works excellent!

Note: We use Debian Lenny with its Apache 2.2.x and mod_remoteip is just for 2.3.x branch.

Vladimir

--
Vladimir Dvorak
Linux/Unix geek
Web: http://www.vdsoft.org


---------------------------------------------------------------------
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