system-config/playbooks/roles/static/files/50-releases.openstack.org.conf
Jeremy Stanley 3682f51097 Revert "Temporarily serve static sites from AFS R+W vols"
This reverts commit b0d5658b2c.

Don't merge until static site read-only replicas are updating
regularly again.

Change-Id: I84afc1a2a8e86e16d478d6b0bb306d178b6e7e53
2021-01-14 20:14:13 +00:00

41 lines
1.4 KiB
Plaintext

Define AFS_ROOT /afs/openstack.org/project/releases.openstack.org
<VirtualHost *:80>
ServerName releases.openstack.org
RewriteEngine On
RewriteRule ^/(.*) https://releases.openstack.org/$1 [last,redirect=permanent]
LogLevel warn
ErrorLog /var/log/apache2/releases.openstack.org_error.log
CustomLog /var/log/apache2/releases.openstack.org_access.log combined
ServerSignature Off
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName releases.openstack.org
DocumentRoot ${AFS_ROOT}
SSLCertificateFile /etc/letsencrypt-certs/releases.openstack.org/releases.openstack.org.cer
SSLCertificateKeyFile /etc/letsencrypt-certs/releases.openstack.org/releases.openstack.org.key
SSLCertificateChainFile /etc/letsencrypt-certs/releases.openstack.org/ca.cer
SSLProtocol All -SSLv2 -SSLv3
# Note: this list should ensure ciphers that provide forward secrecy
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:!AES256:!aNULL:!eNULL:!MD5:!DSS:!PSK:!SRP
SSLHonorCipherOrder on
<Directory ${AFS_ROOT}>
Options Indexes FollowSymLinks MultiViews
AllowOverrideList Redirect RedirectMatch
Require all granted
</Directory>
LogLevel warn
ErrorLog /var/log/apache2/releases.openstack.org_error.log
CustomLog /var/log/apache2/releases.openstack.org_access.log combined
ServerSignature Off
</VirtualHost>
</IfModule>