V
V
Vyacheslav Makodin2014-05-07 22:14:40
System administration
Vyacheslav Makodin, 2014-05-07 22:14:40

How to properly set up a pac file for Internet Explorer?

There is a pac file, located in \\MAIN2\Public\proxy.pac
Contents of the file:

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

All proven browsers (Opera, Firefox, Chrome) normally process and select the desired proxy, everything is ok.
But our old friend IE point-blank doesn't want to use pac and uses DIRECT.
How to create the perfect file, maybe a special encoding or syntax is needed?
Or in the Internet Options → Connections → Network settings, in the “Use automatic configuration script” field, you need to somehow register the link in a special way (it says: \\MAIN2\Public\proxy.pac)?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mikes, 2014-05-08
@mikes

well.. for starters en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol
The link to the autoconfiguration script should be located on wpad.domain.com/wpad.dat
in order for browsers to grab this script themselves, you need to configure dns and (or) dhcp.

M
msdos9, 2019-01-17
@msdos9

Everything is very simple.
On some computer in LAN you install (it will take literally 5 minutes) a primitive web server, for example tinyweb. You throw your script file there and, voila, you can write the address of the computer (more precisely, the file) in the “Use automatic configuration script” field, in the form http: // xx.xx.xx.xx/proxy.pac
Where I got it:
https: //www.ritlabs.com/ru/products/tinyweb/
xvid.ru/docs/servers/tiny.htm Just
written

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question