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

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

1 Answer 1

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.