PAC Proxy: Tự Động Cấu Hình Proxy Trong Môi Trường Doanh Nghiệp
Last updated
function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.example.com")) {
return "PROXY proxy.example.com:8080";
}
return "DIRECT";
}function FindProxyForURL(url, host) {
if (isInNet(host, "192.168.1.0", "255.255.255.0") ||
shExpMatch(host, "*.internal.local")) {
return "DIRECT";
}
return "PROXY proxy.mycorp.com:3128; DIRECT";
}nano /var/www/html/proxy.paccurl --proxy "$(cat proxy.pac | grep return)" http://example.com