Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 77033 invoked from network); 28 Jul 2005 05:29:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2005 05:29:38 -0000 Received: (qmail 87178 invoked by uid 500); 28 Jul 2005 05:29:21 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 87164 invoked by uid 500); 28 Jul 2005 05:29:20 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 87151 invoked by uid 99); 28 Jul 2005 05:29:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2005 22:29:20 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=HTML_50_60,HTML_MESSAGE,NORMAL_HTTP_TO_IP X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [64.81.49.251] (HELO pxtbenexd01.pxt.primeexalia.com) (64.81.49.251) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2005 22:29:12 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C59335.4C8D8AC9" X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Wed, 27 Jul 2005 22:25:57 -0700 Message-ID: <57F9959B46E0FA4D8BA88AEDFBE582909EED@pxtbenexd01.pxt.primeexalia.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Rewrite / reverse proxy question Thread-Index: AcVt7lO/Q29cTyKET5akm1ALOjY5TAB/WduAAB0r+DAItRqTtw== From: "Gary W. Smith" To: , , X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Rewrite / reverse proxy question X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C59335.4C8D8AC9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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? =20 Below is the config file. Also, neither rewrites seem to work. Is = there anything that I'm doing obviously wrong? =20 =20 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 http://10.41.63.12/exchange ProxyPassReverse /exchange http://10.41.63.12/exchange ProxyPass /exchweb http://10.41.63.12/exchweb ProxyPassReverse /exchweb http://10.41.63.12/exchweb ProxyPass /public http://10.41.63.12/public ProxyPassReverse /public http://10.41.63.12/public ________________________________ From: Gary W. Smith [mailto:gary@primeexalia.com] Sent: Mon 6/13/2005 2:39 PM To: users@httpd.apache.org; users@httpd.apache.org 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. =20 =20 Gary ________________________________ From: Axel-St=E9phane SMORGRAV = [mailto:Axel-Stephane.SMORGRAV@europe.adp.com] Sent: Mon 6/13/2005 12:49 AM To: users@httpd.apache.org Subject: RE: [users@httpd] Rewrite / reverse proxy question What about this: =20 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 =20 RewriteRule ^/$ /Exchange [R] =20 RewriteCond $1 !^/[Ee]xchange RewriteRule (.*) /Exchange [R] =20 The above rules imply that the only path accessible through the reverse = proxy will be one prefixed with /Exchange. =20 -ascs ________________________________ From: Gary W. Smith [mailto:gary@primeexalia.com]=20 Sent: Friday, June 10, 2005 8:58 PM To: users@httpd.apache.org Subject: [users@httpd] Rewrite / reverse proxy question Hello, =20 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? =20 Thanks,=20 =20 Gary Smith ------_=_NextPart_001_01C59335.4C8D8AC9 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =0A= =0A= =0A= =0A= =0A= =0A= =0A=
=0A=
We've been = running the =0A= section of code below for some while to proxy to an exchange server = behind the =0A= wall.  The problem recently has been SSL.  For a variety of = reasons we =0A= have SSL and non SSL connections.  After implementing the SSL cert = on the =0A= servers we ran into a problem with the return data being http as opossed = to =0A= https.  This makes sense because of the proxy config.  The = question =0A= now is can we do both SSL and non-SSL on a proxy request?
=0A=
 
=0A=
Below is the config = file.  Also, =0A= neither rewrites seem to work.  Is there anything that I'm doing = obviously =0A= wrong?
=0A=
 
=0A=
 
=0A=
=0A=

RewriteEngine on

=0A=

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

=0A=

# This doesn't seem to work either

=0A=

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

=0A=

=0A=

ProxyRequests Off

=0A=

ProxyPreserveHost On

=0A=

=0A=

ProxyPass /exchange http://10.41.63.12/exchange

=0A=

ProxyPassReverse /exchange = http://10.41.63.12/exchange

=0A=

ProxyPass /exchweb http://10.41.63.12/exchweb

=0A=

ProxyPassReverse /exchweb http://10.41.63.12/exchweb

=0A=

ProxyPass /public http://10.41.63.12/public

=0A=

ProxyPassReverse /public = http://10.41.63.12/public


=0A=
=0A= From: Gary W. Smith =0A= [mailto:gary@primeexalia.com]
Sent: Mon 6/13/2005 2:39 =0A= PM
To: users@httpd.apache.org; =0A= users@httpd.apache.org
Subject: RE: [users@httpd] Rewrite / = reverse =0A= proxy question

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

=0A=
=0A= From: Axel-St=E9phane SMORGRAV =0A= [mailto:Axel-Stephane.SMORGRAV@europe.adp.com]
Sent: Mon = 6/13/2005 =0A= 12:49 AM
To: users@httpd.apache.org
Subject: RE: =0A= [users@httpd] Rewrite / reverse proxy question

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

=0A=
=0A=
=0A= From: Gary W. Smith =0A= [mailto:gary@primeexalia.com]
Sent: Friday, June 10, 2005 = 8:58 =0A= PM
To: users@httpd.apache.org
Subject: [users@httpd] = Rewrite =0A= / reverse proxy question

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