Setup Wildcard Subdomain on Localhost for Development Work without /Etc/hosts TomFoolery

Step 1.

Open up your browser and visit http://www.hexxie.com. You can also go to anything.hexxie.com and everything.hexxie.com, which will resolve to your local machine (assuming it’s localhost at 127.0.0.1).

How it works

Super simple. I just pointed hexxie.com and *.hexxie.com to 127.0.0.1, which is your localhost address. If you’re on Rails just append the port number as usual. http://hexxie.com:3000 or on Django http://hexxie.com:8000. Or you can always fire those guys up on port :80 with sudo ./script/server -p80 for Rails
or sudo django-admin.py runserver 80

To set up your own just configure DNS to point your domain to 127.0.0.1 for the IP address. No more futzing with /etc/hosts

Originally got this tip from http://tbaggery.com/2010/03/04/smack-a-ho-st.html who has created his own service at smackaho.st

The word “Hexe” is German for “Witch”. I have a dog named “Hexxie” after the German word and that is the origin of the domain name hexxie.com, in case you’re wondering.

Related posts:

  1. Wildcard VirtualHost with Apache2
  2. Sending eMail with Rails on Mac OS X Development Environment
  3. Override to_param method in model to get pseudo permalinks without any work
  4. Fixing MySQL for Rails 2.2 Development on Mac OS X
  5. My Review of Moodle 1.9 Extension Development
This entry was posted in Programming and tagged , , , , , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Trackbacks

  1. [...] Blog-Post zum DNS-Dienst: hexxie.com [...]

  2. By , ★ The blog of Kristóf Kovács on May 29, 2010 at 8:34 am

    [...] that points everything to localhost. Then, I found out that one such already exists, courtesy of Sean Behan, who already set up hexxie.com like [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>