DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28892>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28892 SetEnvIf does not work in .htaccess (Win32 only?) Summary: SetEnvIf does not work in .htaccess (Win32 only?) Product: Apache httpd-1.3 Version: 1.3.29 Platform: Other OS/Version: Windows 9x Status: NEW Severity: Normal Priority: Other Component: Other mods AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] This statement SetEnvIf FAKE_HEADER ^$ REWRITTEN_URI=done defines new env var for my perl script(CGI) if it was used in vhost context. Being used in .htaccess file the same statement fails. And the same for SetEnvIf REQUEST_METHOD ^GET$ REWRITTEN_URI=done - works in vhost context, ain't work in per-directory context. This is checked with my older Apache httpd 1.3.20 and the latest 1.3.29 on Win95. This bug is by no means crusial but makes an unpleasant inconsistency if you develop on Win32 platform like me. I believe this is a Win32 only bug. I had to use such a strange statements because plain SetEnv does not work in per-dir context at all. May be it worth to spread it too? I guess the rest should be posted to mod_rewrite developer, mod_rewrite's rule like RewriteRule ^(.*)\.html$ /cgi-bin/main.pl?$1 [E=REWRITTEN_URI:1,L] works fine, but doesn't set the env var in per-dir context too. Probably for the same reason... So, I've found no way to set env var in .htaccess file :( Thanks, guys! This is minor of course! Apache rules! Sorry if I missed something. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
