Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 86232 invoked from network); 18 Apr 2005 18:34:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Apr 2005 18:34:54 -0000 Received: (qmail 96383 invoked by uid 500); 18 Apr 2005 18:34:35 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 96372 invoked by uid 500); 18 Apr 2005 18:34:35 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 96359 invoked by uid 99); 18 Apr 2005 18:34:35 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTTP_ESCAPED_HOST X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from vega.iii.com (HELO mail.iii.com) (192.33.187.51) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 18 Apr 2005 11:34:33 -0700 Received: from molly.iii.com (upgrade [192.33.187.250]) by mail.iii.com (8.12.10/8.12.9) with ESMTP id j3IIYV9d030136 for ; Mon, 18 Apr 2005 11:34:31 -0700 (PDT) Received: from pcs250.iii.com ([205.227.90.222]) by molly.iii.com (8.9.3/8.9.1) with ESMTP id LAA12845 for ; Mon, 18 Apr 2005 11:34:28 -0700 (PDT) Message-Id: <5.1.0.14.2.20050418112542.024daa90@molly.iii.com> X-Sender: paladino@molly.iii.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 18 Apr 2005 11:36:13 -0700 To: users@httpd.apache.org From: Richard Paladino In-Reply-To: <200504181933.19942.chitta@iitkgp.ac.in> References: <4263BB9C.7020501@videotron.ca> <4263BB9C.7020501@videotron.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Checked: Checked Subject: [users@httpd] Reverse Proxy and Rewrite. X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Users, I would like to 2nd the request that Chitta notes below. Here is my specific situation: I need to be able to accommodate a back-end server with reverse proxy rewrite rules. My back-end servers run on multiple ports and the URLs are widely variable. I have created rewrite rules to cover most of the "normal" activity: RewriteCond %{HTTP_HOST} ^([0-9]{1,5}-[.a-zA-Z0-9-]*\.)?frontend\.server\.com(:[0-9]+)?$ RewriteRule ^/(.*) http://%1backend.server.com%2/$1 [P,L] My problem is that the backend server redirects to SSL ports at various times. I have a list of URLs that I need to catch to do this, but I can't find any way to transfer the connection internally in Apache to another virtual host (an SSL port) when the backend server sends one of its redirects. Here is an example URL: http://backend.server.com/verification ...redirects the user to: https://backend.server.com/verification/~S8 I have successfully created an SSL virtual host that itself contains all the rewrite rules noted above, it's this explicit redirect that I have no idea how to handle. What happens at redirect is that I "pop out of" the reverse proxy connection and end up at the backend server. If a creative User can help with this, you will have earned my un-dying respect and gratitude... Thanks in advance, Richard At 07:03 AM 4/18/2005, Chittaranjan Mandal wrote: >Reverse proxy is so useful. > >It would be nice to have a complete example covering >+ main web server reverse proxying HTTP requests to internal web servers >+ main web server reverse proxying HTTPS requests to internal web servers >+ Dealing with the situation when the internal web server rewrites a > HTTP request to a HTTPS request >+ Dealing with the situation when the internal web server rewrites a > HTTPS request to a HTTP request > >-Chitta > >--------------------------------------------------------------------- >The official User-To-User support forum of the Apache HTTP Server Project. >See 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 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