httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From François Conil <co...@ece.fr>
Subject Re: [users@httpd] reverse proxy - forward ip
Date Tue, 31 Jan 2006 07:56:23 GMT
allan juul a écrit :
> hello,
> 
> we have on the same machine an apache2 in front (80) of a backend web
> server (8000) in a reverse proxy set up. the backend sees the proxied
> requests from the apache as coming from localhost.
> we are in a situation were we need the backend to see the request coming
> from anything but localhost.
> 
> one approach might be to establish a unique host header on the backend,
> so the apache would forward requests like:
> 
> RewriteRule ^/(.*) http://unique.host.com:8000/$1 [p,l]
> 
> instead of
> 
> RewriteRule ^/(.*) http://localhost:8000/$1 [p,l]
> 
> 
> i just wander if there are an easier / or even another solution to this?
> perhaps forwarding the original client ip somehow.
> 
> thanks
> ./a

Give a try to mod proxy,combined with mod_rpaf and mod_extract_forwarded 
that allows the backend to "see" the forwarded host.


-- 
François Conil
Administrateur Systèmes et Réseaux
<Pax> I wish my lawn was emo, so it would cut itself.


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