SetEnv usage should be guarded
mod_env may not be present on a system in which case browser will get 500 Internal Server Error. The error in apache logs say "Invalid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration".
This commit is contained in:
committed by
Frédéric Guillot
parent
29b1357cd2
commit
a39cb11f52
@@ -8,7 +8,11 @@
|
|||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
Options -MultiViews
|
Options -MultiViews
|
||||||
|
|
||||||
SetEnv HTTP_MOD_REWRITE On
|
|
||||||
|
<IfModule mod_env.c>
|
||||||
|
SetEnv HTTP_MOD_REWRITE On
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
|
||||||
# Uncomment this line depending of your Apache configuration
|
# Uncomment this line depending of your Apache configuration
|
||||||
# RewriteBase /
|
# RewriteBase /
|
||||||
|
|||||||
Reference in New Issue
Block a user