On my localhost I have thttpd server installed with the 'vhost' option on.
/etc/hosts: 127.0.0.1 me.com
in the Document root of thttpd I have a folder of called me.com and it gets served perfectly.
Now I want its.me.com so I made a folder with that name on the same level as the me.com folder, it doesn't work unless I place the following line in the /etc/hosts file: 127.0.0.1 its.me.com
So the question is: How can I get the server to serve subdomains/virtualhosts without adding lines to the hosts file ? how would this be done in a production environment ? Would you have to add it to your DNS ? How ?