3

我已经设置了代理文件,如下所示:

function FindProxyForURL(url, host) {
    return  "PROXY 10.10.10.10:8080";
}

10.10.10.10 什么都不存在。在 IE10/Windows 7 x64 中,我在 IE 的 LAN 设置下禁用了“自动检测设置”和“为 LAN 使用代理服务器”。

浏览器只是忽略 PAC 文件并直接访问网站,因为它们正在加载到浏览器中。

我尝试过的不成功的事情: 1. 通过将代理文件路径直接放在浏览器 URL 字段中来检查它。可以通过浏览器下载。2. pac 文件的文件路径中的双斜杠 3. 将 pac 文件移动到不同的位置 4. 带有双斜杠的 Google Chorme

我在这里缺少什么吗?

谢谢,

约翰

4

1 回答 1

1

Please refer this page

http://kb.k12usa.com/Knowledgebase/Proxy-Auto-Detect-WPAD-Issues-With-IE-Windows-7

Windows 7 added a feature when using Proxy Auto Detect (WPAD) with Internet Explorer, where if the computer fails to detect the proxy settings once, it will not try again. This is a problem if you then later configure your network to support Proxy Auto Detect. This article explains how to disable this new feature, and allow WPAD to work correctly.

To prevent Windows from tracking which network support WPAD, you need to make a simple registry change:

  1. Click the Start button, and in the search field, type in "regedit", then select "regedit.exe" from the list of results
  2. Navigate through the tree to "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Wpad"
  3. Once you have the "Wpad" folder selected, right click in the right pane, and click on "New -> DWORD (32-Bit Value)"
  4. Name this new value "WpadOverride"
  5. Double click the new "WpadOverride" value to edit it
  6. In the "Value data" field, replace the "0" with a "1", then click "OK"
  7. Reboot the computer
于 2014-01-21T06:08:26.797 回答