Re: [users@httpd] Redirect to a moved Proxied file

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

 



On 8/4/05, Becky Alcorn <becky@xxxxxxxxxxxxxxx> wrote:

> I tried a Redirect permanent for the files but this didn't work and from
> what I've read wassn't
> going to while we're using ProxyPass.  I then tried to implement a ProxyPass
> and ProxyReverse specifically
> for the moved files:
> 
> ProxyPass /mod_perl/moved_file1.html
> http://modperlserver:8001/newdir/moved_file1.html
> ProxyPassReverse /mod_perl/moved_file1.html
> http://modperlserver:8001/newdir/moved_file1.html
> 
> <Location /mod_perl>
>   ProxyPass http://modperlserver:8001/
>   ProxyPassReverse http://modperlserver:8001/
> </Location>
> 
> While this does redirect the page to the moved file, I don't get the new URL
> in the nav bar.  That is,
> what I want to see in the navbar is
> http://mystaticserver/newdir/moved_file1.html but I'm still seeing
> http://mystaticserver/moved_file1.html

I'd try this:
ProxyPass /mod_perl/moved_file1.html !
ProxyPass /mod_perl http://modperlserver:8001
ProxyPassReverse /mod_perl http://modperlserver:8001

Redirect permanent /mod_perl/moved_file1.html
http://mystaticserver/newdir/moved_file1.html

It could also be done with mod_rewrite, or by putting the redirects on
the back-end server.

Joshua.

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