httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Rectanus" <brect...@gmail.com>
Subject Re: [users@httpd] Keeping Redirect working even if ProxyPass active?
Date Thu, 18 May 2006 04:49:09 GMT
On 5/17/06, Joshua Slive <joshua@slive.ca> wrote:
> On 5/17/06, Bryce Nesbitt <bryce1@obviously.com> wrote:
> > I have a working Apache 1.3 config that does this:
> >
> > <VirtualHost 69.59.189.72:80>
> > Redirect      permanent /crm/maps/eastbay/index.shtml
> > http://www.citycarshare.org/eastbaymap.do
> > Redirect      permanent /crm/maps/sanfrancisco/index.shtml
> > http://www.citycarshare.org/sfmap.do
> > <Location />
> >   SetHandler caucho-request
> > </Location>
> > CauchoConfigFile /vol0/deployed/ccs_website/resin-ccs_website.conf
> > </VirtualHost>
> >
> >
> > This all works without messing with LoadModule or AddModule.
> > But now it's time for Apache 2.2.0, and I try this:
> >
> > <VirtualHost 69.59.189.74:80>
> > ...
> > Redirect      permanent /crm/maps/eastbay/index.shtml
> > http://www.citycarshare.org/eastbaymap.do
> > Redirect      permanent /crm/maps/sanfrancisco/index.shtml
> > http://www.citycarshare.org/sfmap.do
> > ProxyPass     / ajp://localhost:6808/
> > </VirtualHost>
> >
> > And the ProxyPass directive overrides the Redirect directive.  Is there
> > any way to change the order Apache 2.0 works on these directives?
>
> BEFORE the existing ProxyPass, put
> ProxyPass /crm/maps/easbay/index.shtml !
> etc..
>
> See the docs for ProxyPass.
>

Or use RewriteRule

RewriteEngine On
RewriteRule ^/crm/maps/(eastbay|sanfrancisco)/ [R=301,L]
RewriteRule ^/(.*) [P,L]

-B

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