A
AliRahimiH
I have the following PAC file:
and I have apache2.4 installed as a service on my Windows 10 and I have the .htaccess file to add content type needed for .pac files but still the proxy rules don't apply(checked chrome, edge, IE). The headers I get using curl for windows are also correct:
Also I have tried these addresses in windows proxy autoconfiguration url and none of the work:
Im at lost, this should be working but following the Windows fashion, it isn't! Any ideas?
Continue reading...
Code:
function FindProxyForURL(url, host) {
// use proxy for specific domains
if (shExpMatch(url, "*.google.com") || shExpMatch(host, "*.google.com"))
return "PROXY 37.221.114.33:2255";
// by default use no proxy
return "DIRECT";
}
and I have apache2.4 installed as a service on my Windows 10 and I have the .htaccess file to add content type needed for .pac files but still the proxy rules don't apply(checked chrome, edge, IE). The headers I get using curl for windows are also correct:
Code:
$ curl 127.0.0.1:80/ProxyAutoConfiguration.pac --head
HTTP/1.1 200 OK
Date: Fri, 27 Nov 2020 17:14:06 GMT
Server: Apache/2.4.46 (Win64) LibreSSL/3.1.4 PHP/8.0.0
Upgrade: h2
Connection: Upgrade
Last-Modified: Fri, 27 Nov 2020 17:11:12 GMT
ETag: "13e-5b519bf566785"
Accept-Ranges: bytes
Content-Length: 318
Content-Type: application/x-ns-proxy-autoconfig
Also I have tried these addresses in windows proxy autoconfiguration url and none of the work:
localhost/ProxyAutoConfiguration.pac
, 127.0.0.1/ProxyAutoConfiguration.pac
, 127.0.0.1:80/ProxyAutoConfiguration.pac
.Im at lost, this should be working but following the Windows fashion, it isn't! Any ideas?
Continue reading...