codesearch: redirect other hostnames to codesearch.opendev.org
Make sure things like https://codesearch01.opendev.org or https://codesearch.openstack.org all get redirected to the main http://codesearch.opendev.org site. Change-Id: Ifb2c810425b60474ba3581611d85ddcc5c77f130
This commit is contained in:
parent
ba27a1fda6
commit
fc82ee2c5b
@ -16,6 +16,9 @@
|
||||
ServerName {{ inventory_hostname }}
|
||||
ServerAdmin webmaster@openstack.org
|
||||
|
||||
RewriteCond %{HTTP_HOST} !^codesearch\.opendev\.org [nocase]
|
||||
RewriteRule ^/(.*) https://codesearch.opendev.org/$1 [last,redirect=permanent]
|
||||
|
||||
AllowEncodedSlashes On
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/codesearch-ssl-error.log
|
||||
|
Loading…
Reference in New Issue
Block a user