]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
Activates the SSL redirection vhost.
authorThomas Goirand <thomas@goirand.fr>
Wed, 28 Nov 2012 13:47:40 +0000 (13:47 +0000)
committerThomas Goirand <thomas@goirand.fr>
Wed, 28 Nov 2012 13:47:40 +0000 (13:47 +0000)
Rewritten-From: 464385f7484d8d407bd00c59b873c8638afc9a63

trusty/debian/openstack-dashboard-apache.postinst

index 16388c9d487b69a311f3cd87fd8059b5b2226c82..57076f32c46efe51afd418ae07e27b568b1260df 100644 (file)
@@ -10,11 +10,14 @@ if [ "$1" = "configure" ] ; then
                db_get horizon/use_ssl
                if [ "${RET}" = "true" ] ; then
                        a2enmod ssl
-                       a2ensite openstack-dashboard-ssl
+                       a2enmod rewrite
                        a2dissite openstack-dashboard
+                       a2ensite openstack-dashboard-ssl-redirect
+                       a2ensite openstack-dashboard-ssl
                else
-                       a2ensite openstack-dashboard
                        a2dissite openstack-dashboard-ssl
+                       a2dissite openstack-dashboard-ssl-redirect
+                       a2ensite openstack-dashboard
                fi
                invoke-rc.d --quiet apache2 reload
        fi