httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Bowman <ebow...@boboco.ie>
Subject [users@httpd] reverse-proxy from /
Date Mon, 12 May 2008 18:52:06 GMT
Hi all,

I'm trying to run http 2.2.x so that it proxies all requests to subpath 
on another server, something like:

ProxyPass / balancer://foocluster/
ProxyPassReverse / http://bar:35540/foo/
<proxy balancer://foocluster/>
    BalancerMember http://bar:35540/foo/ loadfactor=1
</proxy>

This works ok for URLs like http://foo.com/images/foo.gif, which 
correctly get reverse-proxied to http://bar:35540/foo/images/foo.gif.

A request to just http://foo.com/something does NOT reverse-proxy 
correctly; it only works if there is a further '/' in the path.

Is there a special trick?  I think I've tried every combination of "ends 
with /" and "does not end with /" on the ProxyPass, ProxyPassReverse, 
and BalancerMember directives, to no avail.

Thanks in advance,
Eric

--
Eric Bowman
Boboco Ltd
ebowman@boboco.ie
http://www.boboco.ie/ebowman/pubkey.pgp
+35318394189/+353872801532


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