Надявам се това да ти помогне. Най-отдолу има линк към хелпа.
12. Automatic browser-configuration
When you're getting tired of always reconfiguring all your browsers when something has changed you can use a central 'automatic-configuration'-script.
First of all, there needs to be a webserver that's running on your proxyserver because the configuration file will be server by normal 'http-requests'.
When you're using Apache open up the mime.conf file in your favorite editor (for the right location check your server config-file). Add this line :
application/x-ns-proxy-autoconfig pacNow when this is done, restart the webserver.
You can freely choose the name of the configuration file, as long as it ends with
.pac. This is my example :
proxy.pac-->
function FindProxyForURL(url, host) {
if (isInNet(host, "192.168.1.0", "255.255.255.0"))
{
return "DIRECT";
}
else if (isInNet(host, "192.168.6.0", "255.255.254.0"))
{
return "DIRECT";
}
else
{
return "PROXY proxy.mylan.com:3128;SOCKS proxy.mylan.com:3128";
}
}
<--
Source -
http://linux.cudeso.be/linuxdoc/squid.php#squid_uasge