You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Nova Resource:Redirects/Documentation

From Wikitech-static
Jump to navigation Jump to search

Redirects is intended to provide HTTP redirects for well known URLs that used to be hosted on Cloud VPS projects but are now running on Toolforge or other Wikimedia servers.

Redirects should not be made to servers that are not under Wikimedia control. Automatically redirecting to external servers without an interstitial warning to the end user is a potential privacy violation.

Requesting a new redirect

File a bug report in Phabricator

Creating a new redirect

  1. Use Horizon's Project Puppet tab to edit the Hiera configuration and add the proxied host and new destination to the role::labs::redirector::redirects hash.
    • e.g. hatjitsu.wmcloud.org: https://hatjitsu.toolforge.org/
  2. Force a puppet run on redirects-nginx02.redirects.eqiad.wmflabs to create the new vhost.
  3. Use Horizon to delete the proxy from the Cloud VPS project that is giving it up.
  4. Use Horizon to add the proxy to the redirects project with http://redirects-nginx02.redirects.eqiad.wmflabs:80 as the backend.
  5. Test the redirected URL to ensure that it all works.
  6. Profit!