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 28892] - SetEnvIf does not work in .htaccess (Win32 only?)
Date Tue, 11 May 2004 13:35:25 GMT
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?)





------- Additional Comments From blazer@peterlink.ru  2004-05-11 13:35 -------
Yesss!
I just dumped all env vars and here it is
REDIRECT_REWRITTEN_URI => done

In these testing I always had mod_rewrite in use.
.htaccess is like this

<IfModule mod_rewrite.c>
RewriteEngine     On
RewriteOptions    'inherit'

SetEnvIf FAKE_HEADER ^$ REWRITTEN_URI=done

RewriteRule  ^img/		- [L]
RewriteRule  ^/?$		/e/stop-machine/cgi-bin/main.pl?rewritten= [L]
RewriteRule  ^(.*)\.html$	/e/stop-machine/cgi-bin/main.pl?rewritten=$1 [L]
RewriteRule  ^admin/?$		/e/stop-machine/cgi-bin/adm.pl [L]
RewriteRule  ^.*$		- [F,L]
</IfModule>

Options Indexes ExecCGI FollowSymLinks
Order Deny,Allow
Allow from all
======== fin =======

?rewritten=  is what I'm using because all attempts to set env var failed.

In the env dump I also see
REDIRECT_QUERY_STRING
REDIRECT_URL (same as REQUEST_URI)
REDIRECT_STATUS
REDIRECT_SCRIPT_URL
REDIRECT_SCRIPT_URI

If you want I can send it more detailed with all values.

And absolutelly the same situation when I comment out SetEnvIf and use
RewriteRule  ^/?$	/e/stop-machine/cgi-bin/main.pl?rewritten= 
[E=REWRITTEN_URI:done,L]

Again REDIRECT_REWRITTEN_URI is set to 'done'

Thanks, Andre!
This sure makes a workaround

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


Mime
View raw message