I’m writing a rails app that will use subdomains ala basecamp and
so that users will be organized into groupname.foo.com. I’m kind of
unix so I’m trying to figure out how to handle subdomains locally with
mongrel. Obvioiusly going to somesubdomain.localhost:3000 doesn’t work.
I’ve hacked the /etc/hosts file to setup a local test url: 127.0.0.1
www.localsite.com. I can use that to run locally and pick up subdomains
it feels like there has to be a better way. Any suggestions?
Also, in the etc/hosts file the * wildcard doesn’t seem to catch all
subdomain s (ie. *.localsite.com)