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.

link|improve this question

50% accept rate
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
feedback

1 Answer

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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