Subdomains. How do you do development with subdomains?

view full story

http://serverfault.com – I am currently building an web app which also utilizes websockets. (Rails for webserver and Nodejs for socket.io) I have structured my application to use subdomains to separate between connection to the Nodejs server and the Rails webserver. I have "socket.mysite.com" redirected to the Node server and everything else to the webserver. I am able to test this functionality on localhost. I simply modified my /etc/hosts to include the following: socket.mysite.com mysite.com I know that on production I simply have to generate a CNAME record for socket.mysite.com and this will (HowTos)