Files
system-config/playbooks/roles/static/files/50-docs.starlingx.io.conf
Jeremy Stanley b0d5658b2c Temporarily serve static sites from AFS R+W vols
We're severely backlogged on AFS volume replication, and may be
looking at a week or more before we're caught back up. In the
meantime, serve content from the writeable path instead of the
read-only replica path so we're not stuck with outdated content on
our static sites.

Change-Id: If0c772d72af20aa1210ea3fae7e960fad4689678
2021-01-14 20:10:08 +00:00

43 lines
1.5 KiB
Plaintext

<VirtualHost *:80>
ServerName docs.starlingx.io
RewriteEngine on
RewriteRule ^/(.*) https://docs.starlingx.io/$1 [last,redirect=permanent]
ErrorLog /var/log/apache2/docs.starlingx.io_error.log
LogLevel warn
CustomLog /var/log/apache2/docs.starlingx.io_access.log combined
ServerSignature Off
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName docs.starlingx.io
RewriteEngine on
SSLCertificateFile /etc/letsencrypt-certs/docs.starlingx.io/docs.starlingx.io.cer
SSLCertificateKeyFile /etc/letsencrypt-certs/docs.starlingx.io/docs.starlingx.io.key
SSLCertificateChainFile /etc/letsencrypt-certs/docs.starlingx.io/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
DocumentRoot /afs/.openstack.org/project/starlingx.io/www
<Directory /afs/.openstack.org/project/starlingx.io/www>
Options Indexes FollowSymLinks MultiViews
Require all granted
AllowOverride None
# Allow mod_rewrite rules
AllowOverrideList Redirect RedirectMatch
ErrorDocument 404 /errorpage.html
</Directory>
ErrorLog /var/log/apache2/docs.starlingx.io_error.log
LogLevel warn
CustomLog /var/log/apache2/docs.starlingx.io_access.log combined
ServerSignature Off
</VirtualHost>
</IfModule>