通过代理重定向localhost? [英] Redirect localhost through proxy?

查看:735
本文介绍了通过代理重定向localhost?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在localhost:1234上运行的HTTP代理。代理适用于我所做的所有Web请求。

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

我有一台运行在localhost:4567的服务器。我希望我的服务器的HTTP请求通过我的代理。应该简单吧?有没有办法让IE或任何其他浏览器这样做?

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?

推荐答案

通常,您可以为此配置浏览器设置。在Firefox中,它是选项 - >高级 - >网络 - >连接(设置)。

Generally you can configure your browser settings for this. In Firefox it's Options -> Advanced -> Network -> Connection (Settings).

如果检测到localhost URL,IE会自动忽略代理。这一直是Fiddler等工具方面的一个棘手问题。

IE automatically ignores proxies if it detects a localhost URL. This has always been a thorn in the side of tools like Fiddler.

然而,你可以经常通过字面上的
http://somesite.com:1234 。有人花时间注册somesite.com域以自动路由到127.0.0.1。这让IE误认为它是一个外部域,但应该在重定向到本地服务器时运行你的代理。

However, you can often get around that by literally going to http://somesite.com:1234. Someone has taken the time to register the "somesite.com" domain to automatically route to 127.0.0.1. This fools IE into thinking it's an outside domain, but should run through your proxy while redirecting to your local server.

祝你好运。

这篇关于通过代理重定向localhost?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆