Browse code

Merge "Add keystone VirtualHost for port 443 when USE_SSL is True"

Jenkins authored on 2016/12/03 00:27:47
Showing 2 changed files
... ...
@@ -34,6 +34,12 @@ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)"
34 34
     %SSLKEYFILE%
35 35
 </VirtualHost>
36 36
 
37
+%SSLLISTEN%<VirtualHost *:443>
38
+%SSLLISTEN%    %SSLENGINE%
39
+%SSLLISTEN%    %SSLCERTFILE%
40
+%SSLLISTEN%    %SSLKEYFILE%
41
+%SSLLISTEN%</VirtualHost>
42
+
37 43
 Alias /identity %KEYSTONE_BIN%/keystone-wsgi-public
38 44
 <Location /identity>
39 45
     SetHandler wsgi-script
... ...
@@ -153,6 +153,7 @@ function cleanup_keystone {
153 153
 function _config_keystone_apache_wsgi {
154 154
     local keystone_apache_conf
155 155
     keystone_apache_conf=$(apache_site_config_for keystone)
156
+    keystone_ssl_listen="#"
156 157
     local keystone_ssl=""
157 158
     local keystone_certfile=""
158 159
     local keystone_keyfile=""
... ...
@@ -161,6 +162,7 @@ function _config_keystone_apache_wsgi {
161 161
     local venv_path=""
162 162
 
163 163
     if is_ssl_enabled_service key; then
164
+        keystone_ssl_listen=""
164 165
         keystone_ssl="SSLEngine On"
165 166
         keystone_certfile="SSLCertificateFile $KEYSTONE_SSL_CERT"
166 167
         keystone_keyfile="SSLCertificateKeyFile $KEYSTONE_SSL_KEY"
... ...
@@ -178,6 +180,7 @@ function _config_keystone_apache_wsgi {
178 178
         s|%PUBLICPORT%|$keystone_service_port|g;
179 179
         s|%ADMINPORT%|$keystone_auth_port|g;
180 180
         s|%APACHE_NAME%|$APACHE_NAME|g;
181
+        s|%SSLLISTEN%|$keystone_ssl_listen|g;
181 182
         s|%SSLENGINE%|$keystone_ssl|g;
182 183
         s|%SSLCERTFILE%|$keystone_certfile|g;
183 184
         s|%SSLKEYFILE%|$keystone_keyfile|g;