httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Planjer <Felix.Plan...@YellowRed.nl>
Subject RE: [users@httpd] Redirect??
Date Thu, 27 Mar 2003 08:27:01 GMT
You could use mod_rewrite:

ReWriteRule ^/webmail/(.*) http://192.168.1.102/$1




> -----Original Message-----
> From: Frank McIsaac [mailto:maxice@sasktel.net]
> Sent: Thursday, March 27, 2003 2:40 AM
> To: apache
> Subject: [users@httpd] Redirect??
>
>
>         Hi.  This is my situation:
>
>         I have two apache servers running behind a router.  Port 80 is
> forwarded to them (as well as other ports).  One of the machines in my
> main webserver(say 192.168.1.101), and the other is used mainly for a
> mail server(192.168.1.102).  I am trying to setup web-based mail on the
> mail server(x.x.x.102).  Until now, all requests on port 80 went to my
> webserver, and all mail requests went to the mail server.  On my
> webserver, I have several virtual hosts; one of which is for my personal
> domain (the others are for clients).  I want it so that if I type
> www.my-domain.ca/webmail , I get the home page of my mail server
> (x.x.x.102 - which is also running apache and listening on port 80).
> Basically, the document root for www.my_domain.ca/webmail is on the
> other machine.  Any ideas?  If there is a solution to my problem, will
> it work for www.webmail.my_domain.ca ?  Thanks in advance.
>
> Frank
>
>
>
> ---------------------------------------------------------------------
> 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