FreshPorts website moved

The FreshPorts website has moved. It was at 216.168.29.4 and is now at 64.147.113.42, on the other side of the country.

If your DNS is lagged, you will be redirected from http://www.freshports.org/ to http://beta.freshports.org/. Once your DNS catches up, you won’t be directed. This wonderful solution is accomplished with this directive on the old website:

<VirtualHost *>
    ServerAdmin     dan@langille.org

    DocumentRoot    /usr/websites/freshports.org/www

    Redirect        302 / http://beta.freshports.org/

    ServerName      www.freshports.org
</VirtualHost>

When copying the DB from one system to the other:

  • dump freshports.org | gzip > freshports.org.gz
  • scp to the other server
  • gunzip
  • stop the production server
  • rsync from production to beta
  • createdb on beta
  • psql freshports.new < freshports.org
  • take beta offline
  • rename beta database to .old
  • rename .new to .org
  • bring beta website back online
  • check it’s OK
  • change DNS
  • Redirect old www to beta

That’s the short version. Any questions?

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Comment

Scroll to Top