httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] ProxyPass for more than 1 remote server
Date Wed, 25 Mar 2009 08:38:40 GMT
On Wed, Mar 25, 2009 at 1:59 AM, inas inassen <mezghena@hotmail.com> wrote:
>
> Hi all,
>
> I'm trying to make ProxyPass and ProxyPassReverse work within 2 remote
> server
>
> I have
>
> ProxyPass / http://server1:8080/
> ProxyPassReverse / http://server1:8080/
>
> ProxyPass /docs http://server2:8080/docs
> ProxyPassReverse /docs http://server2:8080/docs
>
> ProxyPass /jsp-examples http://server2:8080/jsp-examples
> ProxyPassReverse /jsp-examples  http://server2:8080/jsp-examples
> It seems like apache try to proxy all uri to server1, so how can I make only
> path  /  goes to server1 and all others paths proxied to server2?

Change the order of your proxy directives. Put the more specific ones
before the mroe general ones.

Krist



-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

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