perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abd El-Hamid Mohammed" <ha...@egypt.com>
Subject Redirecting through proxy
Date Thu, 29 Aug 2002 18:39:02 GMT
Hi,
   Anybody can tell me how to redirect
http://www.mydomain.com/abc To http://abc.mydomain.com:8080

I had used the following

RewriteEngine on
RewriteRule ^/abc(.*) http://abc.use-trade.com:8080$1 [P]
ProxyPass /abc/   http://abc.use-trade.com:8080/
ProxyPassReverse /abc/ http://abc.use-trade.com:8080/

and it works great for redirecting http://www.mydomain.com/abc/
but it fails with http://www.mydomain.com/abc "without the trailing slash"
as the first page is the only page that displays correctly, Any link in it
is prefixed with http://www.mydomain.com/ which is wrong as it should be
http://www.mydomain.com/abc/

Can anyone tells me how to solve it.

Abd El-Hameed


Mime
View raw message