summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJyoti Sharma <jyoti.mickey@gmail.com>2018-07-06 12:03:12 +0530
committerFrédéric Guillot <fred@kanboard.net>2018-07-06 12:50:33 -0700
commita39cb11f520d84bf8298e0f1aa82aabd81779117 (patch)
treec3371aa02260bf518bdd929ea11e13f547d9f029
parent29b1357cd2f5449e4e5af1126c3d99e37dc1c061 (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--.htaccess6
1 files changed, 5 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index 823abe80..7bfd6a95 100644
--- a/.htaccess
+++ b/.htaccess
@@ -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 /