Adding redirect site for horizon
The adds redirect site for horizon which tells
apache redirect all connections from 80 to 443 port.
Change-Id: I2cab43367feb735df922442f52fb8ad21628c08c
Related-PROD: PROD-24976
diff --git a/apache/server/redirect/openstack_web_redirect.yml b/apache/server/redirect/openstack_web_redirect.yml
new file mode 100644
index 0000000..c7be277
--- /dev/null
+++ b/apache/server/redirect/openstack_web_redirect.yml
@@ -0,0 +1,18 @@
+parameters:
+ apache:
+ server:
+ bind:
+ listen_default_ports: False
+ site:
+ horizon_redirect_http_to_https:
+ name: 'openstack_web_redirect'
+ enabled: true
+ type: 'redirect'
+ root: '/var/www/httproot'
+ host:
+ address: ${_param:apache_horizon_api_address}
+ name: ${_param:apache_horizon_api_host}
+ port: 80
+ redirect_mode: rewrite
+ target_url: 'https://%{SERVER_NAME}'
+ listen_address: '0.0.0.0'