From f25bdcc1717e3813c6116f24049e3a4a4ac0467d Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 9 Sep 2022 15:16:00 +0000 Subject: [PATCH] Redirect openstack-infra specs to opendev docs When we started publishing our infra-specs repository to docs.opendev.org we never removed the old copy on specs.openstack.org (simply dropped it from the index there). In an effort to reduce confusion, redirect the entire /openstack-infra tree to our tenant on the docs site where the current copy lives. To be clear, the old specs were published to a /openstack-infra/infra-specs directory but those were the only thing in /openstack-infra, so redirecting to docs.opendev.org/opendev will match the infra-specs subdirectories up on both of them while also shadowing the bare autoindex of the parent directory on the old site. Change-Id: I95082a56d008d0839e92040992f68711ce292e40 --- playbooks/roles/static/files/50-specs.openstack.org.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playbooks/roles/static/files/50-specs.openstack.org.conf b/playbooks/roles/static/files/50-specs.openstack.org.conf index 95b8470624..24f831cd7a 100644 --- a/playbooks/roles/static/files/50-specs.openstack.org.conf +++ b/playbooks/roles/static/files/50-specs.openstack.org.conf @@ -31,6 +31,9 @@ Define AFS_ROOT /afs/openstack.org/project/specs.openstack.org Require all granted + RewriteEngine On + RewriteRule ^/openstack-infra/(.*) https://docs.opendev.org/opendev/$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