diff options
author | Jyoti Sharma <jyoti.mickey@gmail.com> | 2018-07-06 12:03:12 +0530 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-07-06 12:50:33 -0700 |
commit | a39cb11f520d84bf8298e0f1aa82aabd81779117 (patch) | |
tree | c3371aa02260bf518bdd929ea11e13f547d9f029 | |
parent | 29b1357cd2f5449e4e5af1126c3d99e37dc1c061 (diff) |
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".
-rw-r--r-- | .htaccess | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 / |