httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13026] New: - Envars set in fixup hook
Date Thu, 26 Sep 2002 11:07:57 GMT
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=13026>.
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=13026

Envars set in fixup hook

           Summary: Envars set in fixup hook
           Product: Apache httpd-2.0
           Version: 2.0.42
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: cv@corbach.de


Today I ran in a problem involving envars set by mod_rewrite. From my point of 
view the following two situations should be equal:

--- SetEnvIf solution --->
SetEnvIf Host "^my\.domain\.de" allowed_http_host

AuthType Basic
AuthName test
AuthUserFile /opt/apache/share/.htpasswd
Require valid-user
Order Allow,Deny
Allow from env=allowed_http_host
Satisfy any
<--- SetEnvIf solution ---

--- mod_rewrite solution --->
RewriteCond     %{HTTP_HOST}    ^my\.domain\.de
RewriteRule     .*    -      [E=allowed_http_host:1]

AuthType Basic
AuthName test
AuthUserFile /opt/apache/share/.htpasswd
Require valid-user
Order Allow,Deny
Allow from env=allowed_http_host
Satisfy any
<--- mod_rewrite solution ---

The first solution works, the second doesn't in httpd.conf nor in a per-
directory configuration. In both cases the envar is set correctly and can be 
accessed via CGI. It seems as if mod_rewrite set the envar not till the fixup 
hook after authorisation has took into place what makes it impossible to 
replace SetEnvIf with rewriting in cases one needs a more complicated use of 
envars to handle authorisation.
I really don't know if this a bug or a feature request so maybe someone could 
light me up ;-)

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message