[omd-commits] OMD Git: omd: apache: fixed rewrite rule to keep server_port

git version control git at mathias-kettner.de
Thu Oct 8 12:25:23 CEST 2015


Module:   omd
Branch:   master
Commit:   bfcf6af147e85ded52228e499ab7d3e68435a896
URL:      http://omdistro.org/projects/omd/repository/revisions/bfcf6af147e85ded52228e499ab7d3e68435a896

Author:   Simon Meggle <simon.meggle at consol.de>
Date:     Wed Oct  7 19:27:17 2015 +0200
Commiter: Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Thu Oct  8 12:24:53 2015 +0200

apache: fixed rewrite rule to keep server_port

Signed-off-by: Sven Nierlein <Sven.Nierlein at consol.de>

---

 packages/omd/skel/etc/apache/conf.d/omd.conf |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/omd/skel/etc/apache/conf.d/omd.conf b/packages/omd/skel/etc/apache/conf.d/omd.conf
index 0f10957..fbe7dcb 100644
--- a/packages/omd/skel/etc/apache/conf.d/omd.conf
+++ b/packages/omd/skel/etc/apache/conf.d/omd.conf
@@ -12,7 +12,7 @@ RewriteCond %{HTTP:X-Forwarded-Proto} =https [OR]
 RewriteCond %{HTTPS} =on
 RewriteRule ^/###SITE###/?$ - [env=proto:https]
 
-RewriteRule ^/###SITE###/?$ %{ENV:proto}://%{SERVER_NAME}/###SITE###/omd/ [R=302]
+RewriteRule ^/###SITE###/?$ %{ENV:proto}://%{SERVER_NAME}:%{SERVER_PORT}/###SITE###/omd/ [R=302]
 
 # Keep original redirect as fallback, rewrite rules do no work in shared apache mode
 RedirectMatch ^/###SITE###$  /###SITE###/omd/



More information about the omd-commits mailing list