SUBSCRIBE VIA RSS


Subscribe to our feed

Status Updates

  • First iPhone app nearly complete! I've been waiting for 3 weeks for Apple to finish "conducting company identity verification."
    2 days ago
  • Rainy day! Staying indoors. Creating computerized players in a simulation game that models cooperation in the work place.
    74 days ago
  • Up at 8AM, with a hot cup of coffee brought back from Cafe Lola in Ann Arbor. Will I succeed in putting in 8 billable hours in one day?
    99 days ago
  • full scale irish band outside my window playing the pipes for the past 20 minutes. pretty fun.
    108 days ago
  • listening to Kristin on Maxim Radio!
    114 days ago
  • back from an amazing meal at ouest with even more amazing company.
    115 days ago
  • wondering how so many online tshirt companies stay in business--ones that sell shirts with funny messages, i never see them in real life
    121 days ago

Topics

TWITTER

The old fashioned way

RECENT TUNES

  Archive for October, 2007

October 1, 2007 – 1:38pm Prevent DNS Servers from redirecting local requests

When I start work on a new web project I usually create a new virtualhost on my development machine so that I can access a local version of the site at something like http://myproj/ instead of http://localhost/~myusername/myproj. I use a nice little shell script written by Patrick Gibson called virtualhost.sh that handles this task on OS X. One little snafu I run into depending on my ISP is that their DNS servers will sometimes capture my local request to the domain name and try to redirect before my request even hits my local server. To fix this, you have to edit your local hosts database. Open up /private/etc/hosts and add a line like:

127.0.0.1       myproject

Now, any requests to http://myproject/ should be recognized as a local host and your DNS servers will no longer redirect you.

Posted in  OS X Web Development   |  No Comments »   |  delicious  Digg