Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.