[icinga-checkins] icinga.org: icinga-web/gbeutner/default: * Remove IfModule directive for mod_rewrite as this module is a required

git at icinga.org git at icinga.org
Fri Jan 7 13:47:03 CET 2011


Module: icinga-web
Branch: gbeutner/default
Commit: ed7fd25db1ed28a3bd642e6d9c887dea2cc9715b
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=ed7fd25db1ed28a3bd642e6d9c887dea2cc9715b

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Jan  7 13:38:27 2011 +0100

* Remove IfModule directive for mod_rewrite as this module is a required
  dependency and not having it installed causes some non-obvious issues
  for new users (i.e. the web interface is only partially working)

---

 pub/.htaccess.in |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/pub/.htaccess.in b/pub/.htaccess.in
index a2f6072..e82556a 100755
--- a/pub/.htaccess.in
+++ b/pub/.htaccess.in
@@ -6,20 +6,18 @@ Options -MultiViews -Indexes +FollowSymLinks
 Order allow,deny
 Allow from all
 
-<IfModule mod_rewrite.c>
-    RewriteEngine On
+RewriteEngine On
     
-    # This depends on your path
-    # on independent hosts the base is '/'
-    RewriteBase @web_path@
-	
-	# If the requested URL does not exist (it's likely an agavi route),
-	# pass it as path info to index.php, the Agavi dispatch script.
-	RewriteRule ^$ index.php?/ [QSA,L]
-	RewriteCond %{REQUEST_FILENAME} !-f
-	RewriteCond %{REQUEST_FILENAME} !-d
-	RewriteRule (.*) index.php?/$1 [QSA,L]
-</IfModule>
+# This depends on your path
+# on independent hosts the base is '/'
+RewriteBase @web_path@
+
+# If the requested URL does not exist (it's likely an agavi route),
+# pass it as path info to index.php, the Agavi dispatch script.
+RewriteRule ^$ index.php?/ [QSA,L]
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule (.*) index.php?/$1 [QSA,L]
 
 <IfModule mod_deflate.c>
 	# Insert filter





More information about the icinga-checkins mailing list