Dzahn has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/175646

Change subject: bugzilla: old-bz, keep enforcing https
......................................................................

bugzilla: old-bz, keep enforcing https

we want to keep enforcing http->https
but we need a different rule now that
we are behind misc-web, in the main vhost

Change-Id: I92de40b20e362c9239c4a78ef147699ca221bf24
---
M modules/bugzilla/templates/apache/bugzilla.wikimedia.org.erb
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/46/175646/1

diff --git a/modules/bugzilla/templates/apache/bugzilla.wikimedia.org.erb 
b/modules/bugzilla/templates/apache/bugzilla.wikimedia.org.erb
index 2e529e3..e3ada12 100644
--- a/modules/bugzilla/templates/apache/bugzilla.wikimedia.org.erb
+++ b/modules/bugzilla/templates/apache/bugzilla.wikimedia.org.erb
@@ -106,6 +106,9 @@
 RewriteCond %{QUERY_STRING} ^(id=fields.html)$
 RewriteRule /page\.cgi$ https://www.mediawiki.org/wiki/Bugzilla/Fields? [R=303]
 
+RewriteCond %{HTTP:X-Forwarded-Proto} !https
+RewriteRule (.*) https://old-bugzilla.wikimedia.org%{REQUEST_URI}
+
 </VirtualHost>
 
 <VirtualHost *:80>

-- 
To view, visit https://gerrit.wikimedia.org/r/175646
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I92de40b20e362c9239c4a78ef147699ca221bf24
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to