WPAD proxy config
- wpad is a javascript "pac" file that the browser loads, the script tells the browser witch proxy to use for every url request.
Apache2
- put wpad.dat file under /var/www
- discovery
a dhcp server, configured with option 252 = "http://your.server.here/wpad.dat"
- have dns setup top point wpad.COMP.com to the server.
- setup the file type, in apache to "application/x-ns-proxy-autoconfig"
- In your /etc/dhcpd.conf global config, you need something like this:
# For browser auto proxy configuration option wpad code 252 = text; option wpad "http://wpad.my.lan/wpad.dat\n";
- Example wpad.dat file
function FindProxyForURL (url, host) { return "PROXY proxy:8080"; }
...