For testing purposes I need to be able to setup my local testing server
to allow for subdomains, ie subdomain.localhost:3000. The way things
are set up now it will tell me the page cannot be found.
I included *.localhost in my /etc/hosts file, but that doesn't seem to
do the trick.
I usually set up things in my hosts file to point to my port 80 server (which is normally Apache). I then have Apache resolve the subdomains and send the requests via virtual hosts to the mongrels listening on various ports. Seems like a lot for a local installation, but sometimes you need to be able to test that kind of functionality.
I usually set up things in my hosts file to point to my port 80 server
(which is normally Apache). I then have Apache resolve the subdomains
and send the requests via virtual hosts to the mongrels listening on
various ports. Seems like a lot for a local installation, but
sometimes you need to be able to test that kind of functionality.
Thanks for the tip Steve.
It seems like it doesn't like the *. If I use something like the
following it works fine, which is ok for testing.
# /etc/hosts
127.0.0.0 localhost test1.localhost test2.localhost
I also found a really good article in the Advanced Rails Recipes book,
which went over other details related to session cookies and if the
client is being redirected by a custom url.