On Feb 27, 2005, at 4:01 PM, Barry Hoggard wrote:
My setup:
mod_perl/1.999.21 httpd-2.0.53 mod_rpaf-0.5
I have a front-end apache that listens on the server IP, and proxies requests to a mod_perl server listening on several ports of 127.0.0.1.
I would like to be able to see the status pages without having to be logged into the server. Is there a way for me to check the remote IP on the perl server? I tried something like this (with my IP in that xxx expression):
SetEnvIf Remote_Host ^xx\.xxx\.xx\.xxx$ admin_ip
<Location /perl-server-status> SetHandler server-status Order deny,allow Deny from all Allow from env=admin_ip </Location>
I should also mention that I tried using HTTP_X_FORWARDED_FOR where Remote_Host appears above.
Should I be doing this with a handler instead?