make brasstacks.mozilla.org redirect to brasstacks.mozilla.org/orangefactor

RESOLVED FIXED

Status

Tree Management
OrangeFactor
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: bkelly, Assigned: emorley)

Tracking

Details

(Reporter)

Description

2 years ago
Currently brasstacks.mozilla.org redirects to mozilla.org.  This is a little annoying given we now show the site host without any path as the first result in the awesomebar.

It would be nice if brasstacks.mozilla.org redirected to brasstacks.mozilla.org/orangefactor.
Assignee: nobody → emorley
Component: General → OrangeFactor
Product: Testing → Tree Management
Version: unspecified → ---
Thank you for filing this :-)


[~/orangefactor]$ diff -u6 brasstacks-nginx.conf brasstacks-nginx_new.conf
--- brasstacks-nginx.conf       2015-12-28 20:49:05.257639500 +0000
+++ brasstacks-nginx_new.conf   2015-12-28 20:55:54.472656500 +0000
@@ -76,14 +76,14 @@
         #access_log  logs/host.access.log  main;

         location / {
             root   /usr/share/nginx/html;
             index  index.html index.htm;
             autoindex on;
-            rewrite ^/$ https://www.mozilla.org/ permanent;
-            rewrite ^/index.html$ https://www.mozilla.org/ permanent;
+            rewrite ^/$ https://brasstacks.mozilla.com/orangefactor/ permanent;
+            rewrite ^/index.html$ https://brasstacks.mozilla.com/orangefactor/ permanent;
         }

         location /toolbox {
             rewrite /toolbox(.*) http://k0s.org/toolbox$1 break;
         }

Before:

[~/src/treeherder]$ curl -I "http://brasstacks.mozilla.com/"
HTTP/1.1 301 Moved Permanently
Server: nginx/0.8.54
Date: Mon, 28 Dec 2015 20:55:13 GMT
Content-Type: text/html
Content-Length: 185
Location: https://www.mozilla.org/
Connection: keep-alive

After:

[~/src/treeherder]$ curl -I "http://brasstacks.mozilla.com/"
HTTP/1.1 301 Moved Permanently
Server: nginx/0.8.54
Date: Mon, 28 Dec 2015 21:03:10 GMT
Content-Type: text/html
Content-Length: 185
Location: https://brasstacks.mozilla.com/orangefactor/
Connection: keep-alive
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
I've also done the same to /etc/nginx/conf.d/ssl.conf so that the above works for HTTPS too. Bug 1238599 has also set up a Zeus redirect from HTTP to HTTPS.
You need to log in before you can comment on or make changes to this bug.