httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Fraley <jfra...@glenraven.com>
Subject [users@httpd] rewrite help
Date Tue, 17 Sep 2002 19:20:31 GMT
I currently have this set running, which works great:

NameVirtualHost server.domain.com

<VirtualHost server.domain.com>
 RewriteEngine On
 ProxyRequests On
 RewriteRule ^/webmail/(.*)$ http://mail.domain.com:180/$1 [P]
 Redirect /en http://server.domain.com/webmail/en
</VirtualHost>

I am having to move it to another server that has other virtualHosts set up
and I have to use a different url to access the mail server:
http://webmail.domain.com, so any requests that come in to
http://webmail.domain.com needs to be directed to mail.domain.com:180.  I am
having problems getting this to work.  Can this be done, and if so, how.  I
have tested the below configuration but I only get the page of the first
defined virtual host:

NameVirtualHost *

<VirtualHost *>
 RewriteEngine On
 ProxyRequests On
 RewriteRule webmail.domain.com/(.*)$ http://mail.domain.com:180/$1 [P]
 Redirect /en http://webmail.domain.com
</VirtualHost>

Thanks!

Jon Fraley
Unix Systems Administrator
Glen Raven, Inc
(336) 586-1148


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