diff options
author | Nathan Kinder <nkinder@redhat.com> | 2015-03-14 10:00:51 -0700 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2015-03-18 17:49:43 -0400 |
commit | 7f146bcbe3ae20db27e2daf294c19a40ccd419e6 (patch) | |
tree | a36b960ea52998fd75529569fc5c44146b00988d /templates/install/saml2 | |
parent | acd6db64e46c8fa5b93c07dc5ff5c5172ddfa4f6 (diff) | |
download | ipsilon-7f146bcbe3ae20db27e2daf294c19a40ccd419e6.tar.gz ipsilon-7f146bcbe3ae20db27e2daf294c19a40ccd419e6.tar.xz ipsilon-7f146bcbe3ae20db27e2daf294c19a40ccd419e6.zip |
Allow SP installation to be on non-standard ports
When setting up a SP using ipsilon-client-install, there is no
ability to use a non-standard port. We should allow a port number
to be specified that results in the proper URLs in the SP metadata.
This patch adds a --port option to ipsilon-client-install. This is
used in the construction of the URLs used in the SP metadata as well
as in the httpd redirect rules if httpd is being configured.
https://fedorahosted.org/ipsilon/ticket/92
Signed-off-by: Nathan Kinder <nkinder@redhat.com>
Reviewed-by: Rob Crittenden <rcritten@redhat.com>
Diffstat (limited to 'templates/install/saml2')
-rw-r--r-- | templates/install/saml2/sp.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/install/saml2/sp.conf b/templates/install/saml2/sp.conf index d7872cc..a7adaf9 100644 --- a/templates/install/saml2/sp.conf +++ b/templates/install/saml2/sp.conf @@ -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] |