Adding a Subdomain for a CDN

Since I’ll be doing some housecleaning re-associating images with old posts, I might as well head towards a cookieless domain to act as a self hosted CDN. Here’s what I did in Dreamhost.

  1. Under Manage Domains, I created a subdomain called static.pulpconnection.net. I set the option to remove www from the URL.
  2. I picked a user to run this subdomain.
  3. For the Web Directory field, I mapped it to the location of the WordPress uploads home/username/domain/wp-content/uploads

Hope this is right. Now to test…

Ooops. So that the file directory isn’t displayed if you open static.pulpconnection.net in a browser, I added an index.php file to the location that redirects visitors to pulpconnection.net.