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:
Jyoti Sharma 2018-07-06 12:03:12 +05:30 committed by Frédéric Guillot
parent 29b1357cd2
commit a39cb11f52
1 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,11 @@
<IfModule mod_rewrite.c>
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
# RewriteBase /