sensu-docs icon indicating copy to clipboard operation
sensu-docs copied to clipboard

Permanently redirect custom domains to docs.sensu.io

Open hillaryfraley opened this issue 3 years ago • 0 comments

Description

Previously, the domains docs.uchiwa.io and docs.sensuapp.org were mirroring docs.sensu.io content. Anna asked us to remove these sites.

Caleb removed the DNS record for docs.sensuapp.org in November 2021.

Our incoming traffic for docs.uchiwa.io was from uchiwa.io. Simon merged a PR to change the uchiwa.io link to https://docs.sensu.io/uchiwa/latest/.

We still have both docs.uchiwa.io and docs.sensuapp.org configured as custom domains in our Heroku (see Domains section at https://dashboard.heroku.com/apps/sensu-docs-site/settings), along with a few other custom domains. I got an email from Heroku this morning that Heroku's automated certificate management is failing for docs.sensuapp.org -- may be something to do with Caleb removing the DNS record?

We should permanently redirect these domains to docs.sensu.io. Anthony believes we can do this via Heroku.

Category

This is an issue with:

  • [x] bug (bug in site build, layout, or functionality)
  • [ ] enhancement (add new or updated site functionality)

Affected pages

See Domains section at https://dashboard.heroku.com/apps/sensu-docs-site/settings

Expected behavior

All custom domains at https://dashboard.heroku.com/apps/sensu-docs-site/settings redirect to docs.sensu.io.

Additional context

We've tried redirecting docs.uchiwa.io via the static.json file (where we manage all other redirects for docs.sensu.io) but it hasn't worked. Here are a couple of the redirect attempt PRs so you can see what we've already tried:

  • https://github.com/sensu/sensu-docs/pull/3602
  • https://github.com/sensu/sensu-docs/pull/3381

Here's the output from the curl requests Anthony suggested:

hillaryfraley@Hillarys-Sensu-MacBook-Pro ~ % curl -I docs.uchiwa.io
HTTP/1.1 301 Moved Permanently
Connection: keep-alive
Server: nginx
Date: Tue, 18 Jan 2022 20:29:10 GMT
Content-Type: text/html
Content-Length: 162
Location: https://docs.uchiwa.io/
Via: 1.1 vegur

hillaryfraley@Hillarys-Sensu-MacBook-Pro ~ % curl -I https://docs.uchiwa.io/
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx
Date: Tue, 18 Jan 2022 20:29:25 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 77122
Last-Modified: Tue, 18 Jan 2022 17:12:14 GMT
Vary: Accept-Encoding
Etag: "61e6f4ee-12d42"
Accept-Ranges: bytes
Via: 1.1 vegur

hillaryfraley avatar Jan 18 '22 21:01 hillaryfraley