system-config/playbooks/roles/static/files/50-specs.openstack.org.conf
Brian Rosmaita 11f7d8bd1a Redirect openstack-specs to git repo on opendev
The openstack-specs repository was retired over a year ago by
change Ieb37227e6b80, but the content is still displayed on the
specs.openstack.org site.  Add a rewrite rule to redirect requests
to opendev.org/openstack/openstack-specs, where the README
explains that the content is obsolete and provides instructions
for checking out the source code if someone really wants to see
it.

This is similar to how the planet.openstack.org retirement was
handled by change If141aca5efbd.

Change-Id: I906e93e381834321ab8621386649c1614a771d49
2022-09-09 12:09:15 -04:00

45 lines
1.6 KiB
Plaintext

Define AFS_ROOT /afs/openstack.org/project/specs.openstack.org
<VirtualHost *:80>
ServerName specs.openstack.org
RewriteEngine On
RewriteRule ^/(.*) https://specs.openstack.org/$1 [last,redirect=permanent]
LogLevel warn
ErrorLog /var/log/apache2/specs.openstack.org_error.log
CustomLog /var/log/apache2/specs.openstack.org_access.log combined
ServerSignature Off
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName specs.openstack.org
DocumentRoot ${AFS_ROOT}
SSLCertificateFile /etc/letsencrypt-certs/specs.openstack.org/specs.openstack.org.cer
SSLCertificateKeyFile /etc/letsencrypt-certs/specs.openstack.org/specs.openstack.org.key
SSLCertificateChainFile /etc/letsencrypt-certs/specs.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>
RewriteEngine On
RewriteRule ^/openstack-infra/(.*) https://docs.opendev.org/opendev/$1 [last,redirect=permanent]
RewriteRule ^/openstack/openstack-specs/(.*) https://opendev.org/openstack/openstack-specs [last,redirect=permanent]
LogLevel warn
ErrorLog /var/log/apache2/specs.openstack.org_error.log
CustomLog /var/log/apache2/specs.openstack.org_access.log combined
ServerSignature Off
</VirtualHost>
</IfModule>