httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark-Nathaniel Weisman" <>
Subject [users@httpd] mod_rewrite
Date Sat, 05 Oct 2002 16:38:42 GMT
Hello List,
  I've got a quick question that maybe someone can answer. I'd like to redirect requests for
one of the domains I host. I've got about 10 domains in all, and currently I use the <virtualhost>
option to point all the domains to directories on this server. I'd like to move one of the
domains over to another internal server. However, I want any requests for a specific domain
to go over to the new server.
Currently in my httpd.conf I've got;

RewriteEngine on
RewriteLogLevel 0

RewriteRule	^/mystic$ [R]
RewriteRule	^/mystic/$ http://192.168.x.3/ [P]
RewriteRule	^/mystic/(.*)$ http://192.168.x.3/$1 [P,L]

ProxyRequests		on
NoCache		*
ProxyPassReverse	/mystic/  http://192.168.x.3/

A little further down I have;
<virtualhost 192.168.x.2:80>
	DocumentRoot	/usr/local/www/data/mystic1

I want to redirect any request for this domain to another internal server, how exactly do
I do this? Any help would be greatly appreciated.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message