Allow SP installation to be on non-standard ports
[cascardo/ipsilon.git] / templates / install / saml2 / sp.conf
index d7872cc..a7adaf9 100644 (file)
@@ -30,5 +30,5 @@ ${sp}</Directory>
 
 # Redirect requests to the secure port
 ${ssl_rewrite}RewriteEngine on
-${ssl_rewrite}RewriteCond %{SERVER_PORT} !^443$$
-${ssl_rewrite}RewriteRule ^${saml_base}(.*) https://${sp_hostname}${saml_base}$$1 [L,R=301,NC]
+${ssl_rewrite}RewriteCond %{SERVER_PORT} !^${ssl_port}$$
+${ssl_rewrite}RewriteRule ^${saml_base}(.*) https://${sp_hostname}${sp_port}${saml_base}$$1 [L,R=301,NC]