httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Fraley <jfra...@glenraven.com>
Subject RE: [users@httpd] rewrite help
Date Thu, 19 Sep 2002 17:53:51 GMT
I was able to get it to work by using this configuration.

<VirtualHost *>
 ServerName webmail.domain.com
 ErrorLog logs/webmail.domain.com-error_log
 CustomLog logs/webmail.domain.com-access_log common
 RewriteEngine On
 ProxyRequests On
 RewriteRule ^/webmail/(.*)$ http://mail.domain.com:180/$1 [P]
 Redirect /en http://mail.domain.com/webmail/en
</VirtualHost>

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

 -----Original Message-----
From: 	Jon Fraley [mailto:jfraley@glenraven.com]
Sent:	Tuesday, September 17, 2002 3:21 PM
To:	users@httpd.apache.org
Subject:	[users@httpd] rewrite help

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


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