PAC file (proxy auto configuration)
- Create http directory
mkdir -p /var/www/html/pac
- Put to http directory
nano /var/www/html/pac/proxy.pac
function FindProxyForURL(url, host)
{
if (shExpMatch(host, "(*.2ip.ru|2ip.ru)")) {
return "HTTPS proxy.company.com:443";
}
return "DIRECT";
}
- Publish PAC file on your web server Please see nginx MD