ruby on rails - Setting up fake URLs locally that support subdomains -
i'm developing rails 3 app locally on mac. want test locally fake urls support subdomains, e.g. http://blah.example.com , http://blah2.example.com. how can set up?
run favorite shell , terminal:
sudo nano /etc/hosts add in new line:
127.0.0.1 *.example.com press ctrl+x save.
make sure not delete lines there!
Comments
Post a Comment