Redirect localhost through proxy?

Redirect localhost through proxy?

I have a HTTP proxy running at localhost:1234. The proxy works fine for all web requests I make.

I have a server running at localhost:4567 . I want HTTP requests to my server to go through my proxy. Should be simple, right? Is there a way to make IE or any other browser do this?

Programmatically Creating a IIS6 Website/App Pool in Nant


IIS 6, tool to copy all site host headers?
Generally you can configure your browser settings for this.

Sorting web sites in IIS
In Firefox it's Options -> Advanced -> Network -> Connection (Settings)..
How do I programatically disable Etags in iis 6
IE automatically ignores proxies if it detects a localhost URL.

ABCpdf doesn't render images in an web application under IIS6
This has always been a thorn in the side of tools like Fiddler..
IIS App Pool recycles don't appear to observe the specified schedule
However, you can often get around that by literally going to

Does restoring a backup of IIS6 restore the GAC?
Someone has taken the time to register the "" domain to automatically route to

Will creating a new app pool disrupt anything in IIS 6?
This fools IE into thinking it's an outside domain, but should run through your proxy while redirecting to your local server.. Good luck..


Yes, there is a way! . In IE9 if you have the proxy manually configured in Internet Options, you can click on Advanced and simply add <-loopback> to the proxy bypass list.

In IE6, localhost URLs go through the proxy when the proxy is manually configured.

It is only versions IE7+ that don't send localhost requests to the proxy server.. If you want a more global solution, you can create a automatic proxy configuration script.

It is basically a javascript file that contains the function FindProxyForURL.

You can configure Internet Options with the URL of that script.

All HTTP requests will query FindProxyForURL for the proxy server it needs.

So if you want all URLs to go through the proxy you would do something like:.
function FindProxyForURL(url, host) {     return "PROXY localhost:1234"; } 
If you only want external addresses to go to your localhost proxy then you would do something like:.
function FindProxyForURL(url, host) {     if (isPlainHostName(host)) {            return "DIRECT";      }     return "PROXY localhost:1234"; } 


On Windows: . Go to Windows/System32/Drivers/Etc. in notepad running as administrator. Add something like this to your hosts file: . mysite.local 
then all data to that host at http://mysite.local will be picked up by the proxy.

. Ubuntu: /etc/hosts. Mac:


It depends on your browser.

In Firefox, check to see that "no proxy" is empty.

By default Firefox blocks proxy of URLs to localhost and

98 out of 100 based on 78 user ratings 278 reviews