Browse Source

Add ptgbot serveralias for redirecting PTG site

While under development, the subdomain for the PTG site was
originally written as ptgbot.opendev.org and this is what was
communicated to event organizers. Mass communications subsequently
went out including this for URLs to the service. In order to make
the content from those announcements viable, add the additional name
to our configuration so we can redirect from it to the name we
eventually settled on.

While we're adjusting vhost metadata, make the ServerAdmin
directives between the HTTP and HTTPS vhosts for the service
consistent.

Change-Id: I726069f83b792fa31d92b759adc5c1214ca087fa
changes/70/813070/2
Jeremy Stanley 8 months ago
parent
commit
a5c1feef0f
  1. 1
      inventory/service/host_vars/eavesdrop01.opendev.org.yaml
  2. 4
      playbooks/roles/ptgbot/templates/ptgbot.vhost.config.j2

1
inventory/service/host_vars/eavesdrop01.opendev.org.yaml

@ -4,3 +4,4 @@ letsencrypt_certs:
ptg-opendev-org-main:
- ptg.opendev.org
- ptg.openstack.org
- ptgbot.opendev.org

4
playbooks/roles/ptgbot/templates/ptgbot.vhost.config.j2

@ -1,6 +1,7 @@
<VirtualHost *:80>
ServerName ptg.opendev.org
ServerAlias ptg.openstack.org
ServerAlias ptgbot.opendev.org
ServerAdmin infra-root@openstack.org
ErrorLog ${APACHE_LOG_DIR}/ptg-error.log
@ -16,7 +17,8 @@
<VirtualHost *:443>
ServerName ptg.opendev.org
ServerAlias ptg.openstack.org
ServerAdmin webmaster@openstack.org
ServerAlias ptgbot.opendev.org
ServerAdmin infra-root@openstack.org
RewriteEngine On
RewriteCond %{HTTP_HOST} !^ptg\.opendev\.org [nocase]

Loading…
Cancel
Save