Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

for example I debug my local website this way


Is there a program that would make a more convenient alias for it like for example

forcing my browser to use my local files and not the ones online?

share|improve this question
Think about local hosts entries. – Ice May 10 '10 at 21:46
up vote 6 down vote accepted

I find 'localhost' easier to type, fewer keystrokes! It gives you a chance to imagine life before TLDs!

To accomplish what you're asking, you can add a line to your Hosts file like: 

This would skip DNS lookup for and go straight to your local IP. For the location of the Hosts file on your system, check out the corresponding Wikipedia article.

share|improve this answer
Not to be too picky, but if he is running multiple local sites this would require some apache configuration, too. – Benjamin Bannier May 10 '10 at 22:38
I am actually, how would one do that? – Mohammad May 11 '10 at 10:43
i just found this answer… – Mohammad May 11 '10 at 10:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.