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:43:25 GMT
Sorry, I only gave the rule. You need to verify that the mopd_rewrite is
included and enabled.
Enable the rewrite with:

RewriteEngine On
RewriteLog "/var/log/httpd/rewrite.log"
RewriteLogLevel 3
RewriteRule ^/webmail/(.*) http://192.168.1.102/$1 [P]

The LogLevel 3 can be reduced when it works, but is convenient for
debugging.

And I see I forgot the '[p]' in my previous example, which indicates that
the redirect is done via proxy, so the client never gets the 192.168.1.102
in it's browser, which won't work for external clients anyway.

Also, on the apache website there are is a good doc and some examples about
the rewrite engine.

Gr Felix


> -----Original Message-----
> From: Frank McIsaac [mailto:maxice@sasktel.net]
> Sent: Thursday, March 27, 2003 9:38 AM
> To: users@httpd.apache.org
> 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