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 Fri, 28 Mar 2003 05:19:28 GMT
What problem did you face while using mod_rewrite ?

I surely would have used mod_rewrite in such a case.

As I wrote in my earlier post your virtualhost configurations should be as
follows:

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>

Regards,
Nikunj Virani
----- Original Message -----
From: "Frank McIsaac" <maxice@sasktel.net>
To: <users@httpd.apache.org>
Sent: Friday, March 28, 2003 10:43 AM
Subject: Re: [users@httpd] Redirect??


>         Hi guys.  I just tried the ProxyPassReverse and it didn't work
out.
> Zac, what you said about the redirect being valid on the webmail server is
> correct.  If I connect locally, it works great, it is just when I connect
from a
> remote location.
>         I was hoping to not have to edit all the code in the webmail
application
> because it has hundreds of options.  It would take a lot of disecting to
get
> them all.  This sure is a bugger; it seemed simple in the beginning, but
it sure
> turned out to be a thorn in the foot.  Are there any other options, or
have I
> exhausted them all?  Thanks a lot for the help guys.
>
> Frank
>
> Jeff Cohen wrote:
>
> > > -----Original Message-----
> > > From: Zac Stevens [mailto:zts@cryptocracy.com]
> > > Sent: Thursday, March 27, 2003 11:53 PM
> > > To: users@httpd.apache.org
> > > Subject: Re: [users@httpd] Redirect??
> > >
> > > On Thu, Mar 27, 2003 at 10:42:50PM -0600, Frank McIsaac wrote:
> > > > the login screen and can login.  Once I am done checking my mail, I
> > click sign
> > > > out and it, for some reason, goes to
> > http://www.my_domain.ca/src/signout.php
> > > > instead of http://www.my_domain.ca/webmail/src/signout.php .  Right
now,
> > > this is
> > > > what my actual ProxyPass statement says:
> > > >
> > > > ProxyPass /webmail/ http://192.168.1.109/
> > >
> > > In all likelyhood, the webmail application is sending a redirect to
> > > /src/signout.php - which is valid on the webmail server, but not your
> > > frontend webserver.  If this is the case, it can be corrected by using
the
> > > ProxyPassReverse directive.  The options are the same as for ProxyPass
> > >
> > > ProxyPass /webmail/ http://192.168.1.109/
> > > ProxyPassReverse /webmail/ http://192.168.1.109/
> > >
> > > Cheers,
> > >
> > >
> > > Zac
> >
> > Thanks Zac, Or you can go into the sources of the webmail and remove the
> > leading / from the line that says /src/signout.php because it's an HTML
> > issue :)
> >
> > All the best,
> > Jeff Cohen
> >
> > ---------------------------------------------------------------------
> > 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