Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

When developing a website, it's often handy to map the domain to 'localhost' in your hosts file so you can use the real url in a browser. However, switching between local and public hosts using the hosts file gets boring pretty fast, even if you use a tool like gas mask.

I'm wondering if there would be some way to use a proxy server to make things more easy. I want to point my browser to a proxy server that forwards all requests for mydomain.tld to localhost. I've been looking into glype, but i can't find a way to make this work using that.

share|improve this question
Glype is not a full HTTP proxy; it's web-based: just a PHP script that fetches webpages on your behalf (and modifies URLs to point to the same script). – grawity Sep 30 '10 at 14:02

Charles works like this. It has a feature called Map Local which will let you list a set of files/folders to replace with files from your local disk. It is nearly zero-config when you run it on Windows.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .