httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary W. Smith" <>
Subject RE: [users@httpd] Rewrite / reverse proxy question
Date Thu, 28 Jul 2005 05:25:57 GMT
We've been running the section of code below for some while to proxy to an exchange server
behind the wall.  The problem recently has been SSL.  For a variety of reasons we have SSL
and non SSL connections.  After implementing the SSL cert on the servers we ran into a problem
with the return data being http as opossed to https.  This makes sense because of the proxy
config.  The question now is can we do both SSL and non-SSL on a proxy request?
Below is the config file.  Also, neither rewrites seem to work.  Is there anything that I'm
doing obviously wrong?
RewriteEngine on

RewriteRule ^/~/[Ee]xchange /exchange/ [R]

# This doesn't seem to work either

#RewriteRule ^/~/exchange/i /exchange/ [R]

ProxyRequests Off

ProxyPreserveHost On

ProxyPass /exchange

ProxyPassReverse /exchange

ProxyPass /exchweb

ProxyPassReverse /exchweb

ProxyPass /public

ProxyPassReverse /public


From: Gary W. Smith []
Sent: Mon 6/13/2005 2:39 PM
Subject: RE: [users@httpd] Rewrite / reverse proxy question

This will work just fine.  Thanks.  I would redirect / to Exchange normally but it actually
sends them somewhere else right now.  


From: Axel-St├ęphane SMORGRAV []
Sent: Mon 6/13/2005 12:49 AM
Subject: RE: [users@httpd] Rewrite / reverse proxy question

What about this:
If the URL does not start by /[Ee]xchange the user is redirected to /Exchange... I also suggest
that if the user requests the root path /, he gets redirected to /Exchange
RewriteRule ^/$ /Exchange [R]
RewriteCond $1 !^/[Ee]xchange
RewriteRule (.*) /Exchange [R]
The above rules imply that the only path accessible through the reverse proxy will be one
prefixed with /Exchange.


From: Gary W. Smith [] 
Sent: Friday, June 10, 2005 8:58 PM
Subject: [users@httpd] Rewrite / reverse proxy question

We are using reverse proxy an exchange server behind the firewall.  So far everything works
fine but I wanted to put a rewrite script in place in the event they users don't type /Exchange/
and do something like /exchange (missing case and backslash).  Can anyone assist on creating
the rewrite rule for this?
Gary Smith

View raw message