Author:   Lars Michelsen <[email protected]>
Date:     Mon Nov  7 12:49:39 2011 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Mon Nov  7 12:49:39 2011 +0100

Using php redirect to for indexes instead of mod_rewrite

Using the php redirect seems to be better in some cases where https/http servers
are mixed. For example in OMD setups where using apache own mode and https in 
the
frontend and http in the backend apache servers.

Disabling this redirect by default in the hope that the php direct works better.

---

 ChangeLog                      |    1 +
 etc/apache2-nagvis.conf-sample |   10 ++++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c9e32ee..def676b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ Core
     It is not safe to rely on the system's timezone settings
   * Bugfix: Fixed problem with some PHP 5.1.2 installations while reading the
     map configuration files
+  * Switched mod_rewrite redirects of index pages to php redirect scripts
 
 Frontend
   * Recoded editing features to be available via context menu of the icons.
diff --git a/etc/apache2-nagvis.conf-sample b/etc/apache2-nagvis.conf-sample
index 5b27d75..29a14dd 100644
--- a/etc/apache2-nagvis.conf-sample
+++ b/etc/apache2-nagvis.conf-sample
@@ -32,8 +32,14 @@ Alias @NAGVIS_WEB@ "@NAGVIS_PATH@"
     # Use mod_rewrite for old url redirection even if there are php files which
     # redirect the queries itselfs. In some cases the mod_rewrite redirect
     # is better than the php redirect.
-    RewriteCond %{REQUEST_URI} 
^@NAGVIS_WEB@(/config\.php|/index\.php|/|)(\?.*|)$
-    RewriteRule ^(.*)$ @NAGVIS_WEB@/frontend/nagvis-js/%1%2 [R=301,L]
+    #
+    # Using the php redirect seems to be better in some cases where https/http 
servers
+    # are mixed. For example in OMD setups where using apache own mode and 
https in the
+    # frontend and http in the backend apache servers.
+    #
+    # Disabling this redirect by default in the hope that the php direct works 
better.
+    #RewriteCond %{REQUEST_URI} 
^@NAGVIS_WEB@(/config\.php|/index\.php|/|)(\?.*|)$
+    #RewriteRule ^(.*)$ @NAGVIS_WEB@/frontend/nagvis-js/%1%2 [R=301,L]
     
     # Redirect old regular map links
     RewriteCond %{REQUEST_URI} ^@NAGVIS_WEB@/frontend/(wui|nagvis-js)


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to