Skip to content

Commit

Permalink
apache: fixed rewrite rule to keep server_port
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Nierlein <[email protected]>
  • Loading branch information
Simon Meggle authored and sni committed Oct 8, 2015
1 parent 50abffe commit bfcf6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/omd/skel/etc/apache/conf.d/omd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit bfcf6af

Please sign in to comment.