You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chirouze Olivier <ol...@volvo.com> on 2008/01/29 11:40:01 UTC
[users@httpd] Apache proxy + virtual hosts: primary ip is always forwarded
Hi all,
I'm using Apache http Server 2.0 as a reverse proxy with a lot of
name-based virtual hosts listening on a few IP adresses.
The thing is, it's always the primary IP address of the server that is
used when requests are forwarded (by the proxy module) to applicaton
servers.
That means whatever the virtual host is serving (and forwarding) the
request, only the primary IP address appears on application (back-end)
servers' logs.
Guess what? My question is: is there a way to have the "secondary" IP
address used instead (the one on which the request was received)?
That would allow for a much better tracking of requests (on firewalls,
for instance).
Thanks!
Olivier
---------------------------------------------------------------------
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
Re: [users@httpd] Apache proxy + virtual hosts: primary ip is always forwarded
Posted by Vincent Bray <no...@gmail.com>.
On 29/01/2008, Chirouze Olivier <ol...@volvo.com> wrote:
> Guess what? My question is: is there a way to have the "secondary" IP
> address used instead (the one on which the request was received)?
> That would allow for a much better tracking of requests (on firewalls,
> for instance).
I'm fairly sure there isn't, sorry. Can't you get your backend to read
the X-FORWARDED-FOR header?
--
noodl
---------------------------------------------------------------------
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