47db7ea292
It turns out that specifying the ciphers we want to use leads to breakage. So instead we'll explicitly tell Apache which ciphers we don't want to use. Change-Id: I0f8211533495a6a4340c01dadb8069ccf9be429c
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
<VirtualHost <%= scope.lookupvar("openstackid::vhost_name") %>:80>
|
|
ServerAdmin <%= scope.lookupvar("openstackid::serveradmin") %>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/openstackid-error.log
|
|
LogLevel warn
|
|
CustomLog ${APACHE_LOG_DIR}/openstackid-access.log combined
|
|
|
|
Redirect / https://<%= scope.lookupvar("openstackid::vhost_name") %>/
|
|
|
|
</VirtualHost>
|
|
|
|
<IfModule mod_ssl.c>
|
|
<VirtualHost <%= scope.lookupvar("openstackid::vhost_name") %>:443>
|
|
ServerName <%= scope.lookupvar("openstackid::vhost_name") %>
|
|
ServerAdmin <%= scope.lookupvar("openstackid::serveradmin") %>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/openstackid-ssl-error.log
|
|
LogLevel warn
|
|
CustomLog ${APACHE_LOG_DIR}/openstackid-ssl-access.log combined
|
|
|
|
SSLEngine on
|
|
SSLProtocol All -SSLv2 -SSLv3
|
|
SSLCertificateFile <%= scope.lookupvar("openstackid::ssl_cert_file") %>
|
|
SSLCertificateKeyFile <%= scope.lookupvar("openstackid::ssl_key_file") %>
|
|
<% if scope.lookupvar("openstackid::ssl_chain_file") != "" %>
|
|
SSLCertificateChainFile <%= scope.lookupvar("openstackid::ssl_chain_file") %>
|
|
<% end %>
|
|
|
|
RewriteEngine on
|
|
RewriteCond %{HTTP_HOST} !<%= scope.lookupvar("openstackid::vhost_name") %>
|
|
RewriteRule ^.*$ <%= scope.lookupvar("openstackid::canonicalweburl") %>
|
|
|
|
DocumentRoot <%= docroot %>
|
|
<Directory <%= docroot %>/>
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
|
|
</VirtualHost>
|
|
</IfModule>
|