Re: Protecting perl-status by IP on a backend server

[prev] [thread] [next] [Date index for 2005/02/27]

From: Barry Hoggard
Subject: Re: Protecting perl-status by IP on a backend server
Date: 21:17 on 27 Feb 2005
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?



Protecting perl-status by IP on a backend server
Barry Hoggard 21:01 on 27 Feb 2005

Re: Protecting perl-status by IP on a backend server
Barry Hoggard 21:17 on 27 Feb 2005

Re: Protecting perl-status by IP on a backend server
Carl Johnstone 21:55 on 27 Feb 2005

Generated at 17:56 on 01 Mar 2005 by mariachi v0.52