Ticket #27 (defect)

Opened 2 years ago

Apache SSL redirect uses hard-coded hostname

Status: new

Reported by: jpr@openidp.org Assigned to:
Priority: standard Keywords: apache config rewrite
Cc:

The vhost-01-myvocs-box.conf includes RedirectMatch? statements that hard-code the default myvocs-box hostname. This can be avoided with rewrite rules.

Work around is to replace the RedirectMatch? with RewriteRules?:

RewriteCond %{SERVER_PORT} 80
RewriteRule ^/tools/secure/(.*) https://%{SERVER_NAME}/tools/secure/$1 [R,L]

and the second Redirect match to:

RewriteRule ^/(sympa/sso_login/sso.*)$ https://%{SERVER_NAME}/$1 [R,L]