httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Fraley" <jfra...@glenraven.com>
Subject RE: proxypass question
Date Tue, 04 Jun 2002 18:17:36 GMT
Thanks a million!  Adding the Redirect statement that you suggested solved
the problem.

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

 -----Original Message-----
From: 	Joshua Slive [mailto:joshua@slive.ca]
Sent:	Tuesday, June 04, 2002 1:45 PM
To:	users@httpd.apache.org
Subject:	Re: proxypass question

Alexandre Dulaunoy wrote:
> Check out mod_rewrite, there is an additional [P] directive (when
> mod_proxy is available).
>
> Remove your ProxyPass directive and write rules with Rewrite Rules
>
> RewriteRule ^/webmail/(.*)$ http://myinternalwebmail:80/webmail/$1 [P]
>
> Don't forget to pass GET request into the rewrite rule.

I'm not sure why you recommend this.  That RewriteRule is exactly
equivalent to a ProxyPass directive.

To do this translation,
http://dmz.server.com/en/mail.html?sid=sfdefrafefwe&lang=en&cert=false

http://dmz.server.com/webmail/en/mail.html?sid=sfdefrafefwe&lang=en&cert=fal
se

You can do a redirect:
Redirect /en http://dmz.server.com/webmail/en

But that will result in an extra round-trip with the browser for every
redirected request.

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message