Thanks a lot, but I have already tried this.
I think that the problem comes with the ProxyPassReverse when it handles
redirect.

Thanks
Laurent


-----Message d'origine-----
De: Morten Bj�rhus [mailto:[EMAIL PROTECTED]
Date: vendredi 11 janvier 2002 10:14
�: [EMAIL PROTECTED]
Objet: Re: Problem with ProxyPassReverse


You could instead use mod_rewrite and replace the ProxyPass directive
with

RewriteEngine On
RewriteRule /srv1/(.*)  http://real_server1/$1  [P,L]

I think you would still need the

ProxyPassReverse /srv1/ http://real_server1/

to handle redirects.

Morten.

----- Original Message -----
From: "LEBRETON Laurent (IFATEC)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 6:30 PM
Subject: RE: Problem with ProxyPassReverse


In fact, I want that a call to http://reverseproxy/srv1/ would be
answered
by the server at the address http://real_server/ which is under the
reverse
proxy.

The pages to serve on "real_server" are at the root of the server and
not in
the "srv1" directory.

Thanks for help.
Laurent

-----Message d'origine-----
De: Graham Leggett [mailto:[EMAIL PROTECTED]
Date: jeudi 10 janvier 2002 17:28
�: [EMAIL PROTECTED]
Objet: Re: Problem with ProxyPassReverse


"LEBRETON Laurent (IFATEC)" wrote:

> I try to set up a reverse proxy with Apache in order to serve
different
> servers with only one IP address.
>
> My httpd.conf looks like that :
>
> ServerName reverseproxy
> ProxyRequests Off
> ProxyPass /srv1/ http://real_server1/
> ProxyPassReverse /srv1/ http://real_server1/
>
> The problem appears when "real_server1" is a Domino server or serves
ASP
> pages :
> the answer is at the adress http://reverseproxy/
> instead of http://reverseproxy/srv1

(Unless I have misunderstood you) this is exactly what you have asked
the server to do.

If you want /svr1/ to map to reverseproxy/svr1/ you must do this:

ProxyPass /srv1/ http://real_server1/srv1/
ProxyPassReverse /srv1/ http://real_server1/srv1/

Regards,
Graham
--
-----------------------------------------
[EMAIL PROTECTED] "There's a moon
over Bourbon Street
tonight..."



Reply via email to