DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21672>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21672

problem using HTTPS flag in mod_rewrite

           Summary: problem using HTTPS flag in mod_rewrite
           Product: Apache httpd-2.0
           Version: 2.0.46
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


According to the SSL How-To, it should be possible to use the HTTPS flag and URL
rewriting to limit certain accesses to HTTPS.  For example:

    RewriteCond  %{HTTPS}  !=on
    RewriteRule  ^foo$  -  [F]

However, with the above I always get the forbidden result.  I'm using the
following as a workaround without problems:

    RewriteCond  %{SERVER_PORT}  !^443$
    RewriteRule  ^foo$  -  [F]

So why doesn't the HTTPS variable test work as described in the documentation?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to