You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modproxy-dev@apache.org by Gael Marziou <Ga...@hp.com> on 2004/03/26 19:22:01 UTC

ProxyPass and Alias

Hello,

It seems that reverse mappings have higher priority than aliases.

I have this setup:

Alias /home/help "c:/help"

ProxyPass /home http://my.host.com/
ProxyPassReverse /home http://my.host.com/

The alias is ignored, '/home/help' is mapped to remote 
'http://my.host.com/help' instead of aliased local directory.

I am running Apache 1.3.29 on Windows, is there anything I can do to fix 
this?

Thanks,

Gael


Re: ProxyPass and Alias

Posted by Gael Marziou <ga...@.free.fr>.
> Apache v2 has an option to not reverse proxy parts of the URL space, 
> like so:
> 
> ProxyPass http://backendurl/home/help !

Thanks a lot Graham, it's a very good incentive to upgrade to v2.

Gael


Re: ProxyPass and Alias

Posted by Graham Leggett <mi...@sharp.fm>.
Gael Marziou wrote:

> It seems that reverse mappings have higher priority than aliases.

This is true.

> The alias is ignored, '/home/help' is mapped to remote 
> 'http://my.host.com/help' instead of aliased local directory.
> 
> I am running Apache 1.3.29 on Windows, is there anything I can do to fix 
> this?

Apache v2 has an option to not reverse proxy parts of the URL space, 
like so:

ProxyPass http://backendurl/home/help !

This should hopefully fix your problem.

Regards,
Graham
--