Originally posted October 16, 2009

I’m trying to get both coldandheartless.com and pickabout.com pointing to the same computer, so that coldandheartless will serve my normal static pages and pickabout will serve the ruby program. I’ve changed the name resolution of pickabout from Dreamhost back to godaddy’s nameservers and it resolved ok at first. But after some time, it reverts back to the Dreamhost ip address. I’m not sure why this is happening, but hope that it’s just a temporary glitch. My understanding of things is that since godaddy is where I registered the name, that that’s where I set up the name servers. I’m hoping that this switching back and forth is simply just happening until the new ip address propagates out.

Anyway, here are the changes I made to httpd.conf to serve both these names:

# Use name-based virtual hosting.
#
NameVirtualHost *:80 (uncommented this line)
…

<VirtualHost *:80>
ServerName coldandheartless.com
DocumentRoot /usr/local/www
ServerAlias coldandheartless.com *.coldandheartless.com
</VirtualHost&gt/

<VirtualHost *:80>
ServerName pickabout.com
DocumentRoot /usr/local/www/site/current/public
ServerAlias pickabout.com *.pickabout.com
</VirtualHost>