Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 20477 invoked from network); 24 Aug 2005 16:01:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Aug 2005 16:01:39 -0000 Received: (qmail 60374 invoked by uid 500); 24 Aug 2005 16:01:23 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 60218 invoked by uid 500); 24 Aug 2005 16:01:23 -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 60149 invoked by uid 99); 24 Aug 2005 16:01:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2005 09:01:22 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.56.241.12] (HELO polaris.atos-infogerance.fr) (193.56.241.12) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2005 09:01:37 -0700 Received: from minotaure.atos-infogerance.fr ([193.56.47.17]) by polaris.atos-infogerance.fr (8.12.10/8.12.10) with ESMTP id j7OG1F3t016059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 24 Aug 2005 18:01:16 +0200 (MET DST) Received: from exchange2k301.gaia.fr (localhost.localdomain [127.0.0.1]) by minotaure.atos-infogerance.fr (8.12.8/8.12.8) with ESMTP id j7OG1CUd016375 for ; Wed, 24 Aug 2005 18:01:12 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 24 Aug 2005 18:01:15 +0200 Message-ID: <8C29B2F93BAE9047A906EF6D6F9C5D436D93E1@exchange2k301.gaia.fr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] What is the hierarchy/precedence of 2.0 directives? (Redirect problem) Thread-Index: AcWoBc9+fLQGUooGQQWRWSp5hH1VdgAvqQHw From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= To: , X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] What is the hierarchy/precedence of 2.0 directives? (Redirect problem) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N What do you mean by "URI stays as http://www.temple.edu/mmc/ and not as = /sct/mmc/" ?? Do you mean what appears in the address bar is not = /sct/mmc? Why would that change? You do not do any redirect! Furthermore, because of the ProxyPassReverse, any /sct/mmc/ in Location = headers in redirects will be rewritten into /mmc/. To your browser, the fact that the path to the resource on the backend = server is /sct/mmc is totally transparent. That's reverse proxying. What is the underlying problem? -ascs =20 -----Original Message----- From: S.A. Birl [mailto:sbirl+Apache-List@concept.ocis.temple.edu]=20 Sent: Tuesday, August 23, 2005 7:12 PM To: users@httpd.apache.org Subject: [users@httpd] What is the hierarchy/precedence of 2.0 = directives? (Redirect problem) Hello All: Where can I find (or does anyone know) the order in which Apache = preforms its directives? It may or may not solve the underlying problem = below, but a recent discussion I had prompted the above question. The underlying problem I have 2 entries in the file proxies.conf -------------------------------------------------------------------- # proxy directives for http://www.temple.edu/mmc RewriteRule ^/+mmc((/+.*)?$) http://SERVER.temple.edu/sct/mmc$1 [P] ProxyPassReverse /mmc/ http://SERVER.temple.edu/sct/mmc/ -------------------------------------------------------------------- (not inside of a VirtualHost) When I enter http://www.temple.edu/mmc, the request is proxied to http://server.temple.edu/sct/mmc/ and the URI is re-written as http://www.temple.edu/sct/mmc/. This is what I expect and has always worked as expected. The problem is when I enter http://www.temple.edu/mmc/ (note the = trailing slash) The request is still proxied to http://server.temple.edu/sct/mmc, but = the URI stays as http://www.temple.edu/mmc/ and not as /sct/mmc/. My question about the order of directives stems from trying to add Redirect permanment /mmc http://www.temple.edu/sct/mmc/ to httpd.conf = to compensate. I even tried anther RewriteRule, but that didnt work either. RewriteRule ^/+mmc/((/+.*)?$) http://SERVER.temple.edu/sct/mmc$1 [P] How can I fix the underlying problem? Thanks. Birl Please do not CC me responses to my own posts. I'll read the responses on the list. --------------------------------------------------------------------- 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