Re: ProxyPassReverse problem inside <Location> -- is there a fix?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx> wrote:

> From: Nick Kew <nick@xxxxxxxxxxxx>
> Subject: Re:  ProxyPassReverse problem inside <Location> -- is there a fix?
> To: users@xxxxxxxxxxxxxxxx
> Date: Friday, June 13, 2008, 3:47 PM
> On Fri, 13 Jun 2008 14:27:28 -0700 (PDT)
> Scott Jorgenson <dscottjorgenson@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
>    "   from the digest:
> users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail:
> users-help@xxxxxxxxxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux