httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] Another URL redirection
Date Sun, 05 Jan 2003 01:42:21 GMT

On Sat, 4 Jan 2003, Mark-Nathaniel Weisman wrote:
> RewriteEngine on

That needs to be inside the VirtualHost section.

>
> <virtualhost 192.168.50.2:80>
> 	Servername www.mydomain.net
> 	RewriteRule	^/(.+)	http://192.168.50.3/$1	[R,P,L]

The "R" and "P" are mutually exclusive.  "R" means external redirect (ask
the client to fetch the new URL.  "P" means proxy (grab the url using HTTP
and return the results to the client).  I think you want to just delete
the "R".

Also, use the RewriteLog!

> </virtualhost>

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