Turn on mod_rewrite for PTG vhost

In order to use Rewrite* directives, mod_rewrite must be activated
in the vhost via RewriteEngine.

Change-Id: I495ee5e9fd3b1d489122d6e282d3a91d1035c126
This commit is contained in:
Jeremy Stanley 2021-10-07 18:41:43 +00:00
parent 6df026852e
commit ba7d3d59c3
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@
ServerAlias ptg.openstack.org
ServerAdmin webmaster@openstack.org
RewriteEngine On
RewriteCond %{HTTP_HOST} !^ptg\.opendev\.org [nocase]
RewriteRule ^/(.*) https://ptg.opendev.org/$1 [last,redirect=permanent]