system-config/playbooks/roles/static/files/50-docs.airshipit.org.conf
Jeremy Stanley abcae98b8e Add a new docs.airshipit.org vhost on static01
The Airship project is continuously publishing documentation to AFS,
so serve that volume with a corresponding vhost on the static01
server. Also add it to the list of volumes for periodic vos release.

Change-Id: I718963533d9e8596d44d451b5e930314d699fa28
Depends-On: https://review.opendev.org/706599
2020-03-20 19:09:13 +00:00

42 lines
1.3 KiB
Plaintext
Executable File

Define AFS_ROOT /afs/openstack.org/project/airshipit.org
<VirtualHost *:80>
ServerName docs.airshipit.org
RewriteEngine On
RewriteRule ^/(.*) https://docs.airshipit.org/$1 [last,redirect=permanent]
LogLevel warn
ErrorLog /var/log/apache2/docs.airshipit.org_error.log
CustomLog /var/log/apache2/docs.airshipit.org_access.log combined
ServerSignature Off
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName docs.airshipit.org
DocumentRoot ${AFS_ROOT}/docs
SSLCertificateFile /etc/letsencrypt-certs/docs.airshipit.org/docs.airshipit.org.cer
SSLCertificateKeyFile /etc/letsencrypt-certs/docs.airshipit.org/docs.airshipit.org.key
SSLCertificateChainFile /etc/letsencrypt-certs/docs.airshipit.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}/docs>
Options Indexes FollowSymLinks MultiViews
AllowOverrideList Redirect RedirectMatch
Satisfy Any
Require all granted
</Directory>
LogLevel warn
ErrorLog /var/log/apache2/docs.airshipit.org_error.log
CustomLog /var/log/apache2/docs.airshipit.org_access.log combined
ServerSignature Off
</VirtualHost>
</IfModule>