News for hackers. Stuff that matters.
Re:Ask HN: Subdomains versus Directories? by daleharvey on Thursday October 07, 2010 @09:18AM (#1767694)
you cant use wildcards within your hosts file, so you have to manually edit your hosts file for every new subdomain you want to use, I have had a huge hassle doing the same. particularly when you want 1. dynamically generated sub domains, 2. to test a lot of subdomains.

Unless you want to run bind of course

Re:Ask HN: Subdomains versus Directories? by andrewvc on Thursday October 07, 2010 @09:28AM (#1767727)
just have your regular DNS use localhost as a wildcard subdomain, say *.development.mysite.com
Re:Ask HN: Subdomains versus Directories? by retro212 on Thursday October 07, 2010 @09:49AM (#1767787)
lvh.me domain is pointed to 127.0.0.1 so you can use subdomains if you're connected to the internet.
Re:Ask HN: Subdomains versus Directories? by daleharvey on Thursday October 07, 2010 @09:59AM (#1767824)
I think its pretty important for most people development setups to work offline
Re:Ask HN: Subdomains versus Directories? by andrewvc on Thursday October 07, 2010 @05:04PM (#1769522)
Well, then setup bind. It's not the end of the world :). That, or just use /etc/hosts, it's more of a pain, but for testing you just need a handful of URLs.