Received: (qmail 4310 invoked by uid 501); 9 Aug 2001 15:48:19 -0000 Message-Id: <20010809154819.4309.qmail@apache.org> Date: 9 Aug 2001 15:48:19 -0000 From: Alex Pircher Reply-To: Alexander_Pircher@yahoo.de To: submit@bugz.apache.org Subject: RewriteCond %{HTTPS} works, RewriteCond %{ENV:HTTPS} doesn't X-Send-Pr-Version: 3.110 >Number: 8160 >Category: mod_rewrite >Synopsis: RewriteCond %{HTTPS} works, RewriteCond %{ENV:HTTPS} doesn't >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Aug 09 08:50:01 PDT 2001 >Closed-Date: Thu Aug 09 10:12:40 PDT 2001 >Last-Modified: Thu Aug 09 10:12:40 PDT 2001 >Originator: Alexander_Pircher@yahoo.de >Release: 1.3.17 >Organization: >Environment: RedHat 7.0, Apache 1.3.17, mod_ssl 2.8.0, OpenSSL 0.9.6, mod_jk >Description: On http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond it says that Environment-Variables can be accessed with %{ENV:variable} (Special Note, 2.). In PR#5147 (http://bugs.apache.org/index.cgi/full/5147) Ralf says that the HTTPS-Variable can be accessed with %{ENV:HTTPS}, but this isn't working (anymore). The HTTPS-Variable can only be accessed with %{HTTPS} RewriteLog - using %{HTTPS} (4) RewriteCond: input='off' pattern='=on' => not-matched RewriteLog - using %{ENV:HTTPS} (4) RewriteCond: input='' pattern='=on' => not-matched >How-To-Repeat: Works: # No SSL RewriteEngine On RewriteLog /webapps/ca/logs/rewrite.log RewriteLogLevel 9 RewriteCond %{HTTPS} =on RewriteRule ^/(.*) http://%{HTTP_HOST}%{REQUEST_URI} [L,R] Doesn't work: # No SSL RewriteEngine On RewriteLog /webapps/ca/logs/rewrite.log RewriteLogLevel 9 RewriteCond %{ENV:HTTPS} =on RewriteRule ^/(.*) http://%{HTTP_HOST}%{REQUEST_URI} [L,R] >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Thu Aug 9 10:12:40 PDT 2001 State-Changed-Why: Dupe of 8159. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]