Re: [users@httpd] Keeping Redirect working even if ProxyPass active?

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

 



On 5/17/06, Joshua Slive <joshua@xxxxxxxx> wrote:
On 5/17/06, Bryce Nesbitt <bryce1@xxxxxxxxxxxxx> 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@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