httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Dvorak - mailinglists <vladimir.dvo...@vdsoft.org>
Subject Re: [users@httpd] mod_status ans X-Real-IP?
Date Mon, 22 Mar 2010 14:38:45 GMT
Tom Evans wrote:
> 2010/3/22 Vladimir Dvorak - mailinglists <vladimir.dvorak@vdsoft.org>:
>   
>> 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@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