Home - npmdigital/redirector GitHub Wiki

Contacts:

LEAD DEVELOPER: Josh Justice

DEPLOYMENT DEVELOPER: Josh Justice

DEVELOPERS: Josh Justice

SUPPORT DEVELOPER: Josh Justice

Setting up a new redirect

Test out before DNS changes

  • On web7, add the domain (and www. version) to /etc/httpd/vhosts.d/_redirector.conf as ServerAliases
  • In the database, add a record to the domains table. You don’t need to add a separate www. record—the same record will catch both
  • In your hosts file, point that domain (and www. version) to 65.61.136.20
  • Test to make sure the redirect works and adds an entry to the hits table in the DB
  • Remove hosts file entry

Make DNS changes

  • Set up the domain in Rackspace
  • Point the main domain.org to web7
  • Set up www.domain.org as a CNAME to domain.org
  • At the registrar, set up the domain to use Rackspace’s DNS servers