httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Jorgenson <dscottjorgen...@yahoo.com>
Subject Re: [users@httpd] ProxyPassReverse problem inside <Location> -- is there a fix?
Date Sat, 14 Jun 2008 00:00:20 GMT
Thanks for the info, Nick.

Strangely, I'm using 2.0.59 and am quite sure I'm encountering exactly that old problem. 
My configuration is like this:

<Location /abc>
    ProxyPass http://my-server.example.com/some-path
    ProxyPassReverse http://my-server.example.com/some-path
</Location>
<Location /def>
    ProxyPass http://my-server.example.com/some-path
    ProxyPassReverse http://my-server.example.com/some-path
</Location>

When my browser requests http://my-proxy.example.com/abc/something, mod_proxy passes this
through to my-server as expected; and when my-server redirects to http://my-server.example.com/some-path/something-else,
my browser gets redirected to http://my-proxy.example.com/abc/something-else.  Good so far.
 But when I repeat the same scenario, with my browser instead requesting the /def location
(http://my-proxy.example.com/def/something), it still gets redirected to the /abc location
(http://my-proxy.example.com/abc/something-else) instead of the /def location.  So it seems
to be exactly what was being described in that original problem report.

Is there something I needed to do in the configuration, to enable that fix?  If you have any
ideas, I would very much appreciate it :-)  !

Scott

--- On Fri, 6/13/08, Nick Kew <nick@webthing.com> wrote:

> From: Nick Kew <nick@webthing.com>
> Subject: Re: [users@httpd] ProxyPassReverse problem inside <Location> -- is there
a fix?
> To: users@httpd.apache.org
> Date: Friday, June 13, 2008, 3:47 PM
> On Fri, 13 Jun 2008 14:27:28 -0700 (PDT)
> Scott Jorgenson <dscottjorgenson@yahoo.com> wrote:
> 
> > Greetings, everyone.
> > 
> > In February 2005 Nick Kew pointed out a problem with
> mod_proxy's
> > ProxyPassReverse directive: though contained inside a
> <Location>
> > section, ProxyPassReverse would still be applied at
> the server
> > level.  Here's a link to an archive of that
> discussion:
> >
> http://tech.groups.yahoo.com/group/new-httpd/message/52311
> > 
> > My question is, did this ever get fixed, and if so, in
> which Apache
> > httpd  version?  I've looked in the change logs
> for 2.0 and 2.2 (here
> 
> It got fixed long ago (2004 IIRC).  Can't recollect
> what version.
> 
> -- 
> Nick Kew
> 
> Application Development with Apache - the Apache Modules
> Book
> http://www.apachetutor.org/
> 
> ---------------------------------------------------------------------
> 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

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