httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikunj Virani" <nik...@netsurf.co.in>
Subject Re: [users@httpd] Redirect??
Date Thu, 27 Mar 2003 08:45:05 GMT
Make sure you have rewrite module enabled on your server. If its enabled as
DSO then you can check following lines in your httpd.conf:

LoadModule rewrite_module     modules/mod_rewrite.so
AddModule mod_rewrite.c

to be present. Also make sure you have proxy module enabled by checking:

AddModule mod_proxy.c
LoadModule proxy_module       modules/libproxy.so


Inside your virtualhost configuration of the www.my_domain.ca add following:

<VirtualHost my.domain.ca>
DocumentRoot yourdocumentRoot
ServerAlias www.my.domain.ca
RewriteEngine On
ReWriteRule ^/webmail/(.*) http://192.168.1.102/$1 [P]
</VirtualHost>

Hope that helps!


Regards,
Nikunj Virani
----- Original Message -----
From: "Frank McIsaac" <maxice@sasktel.net>
To: <users@httpd.apache.org>
Sent: Thursday, March 27, 2003 2:08 PM
Subject: Re: [users@httpd] Redirect??


> Thanks for your help Felix.  I added that to my VH container for this
domain,
> but it didn't work.  Am I missing something?
>
> Frank
>
> Felix Planjer wrote:
>
> > 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
>
>
>
> ---------------------------------------------------------------------
> 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