WPAD / PAC woes

Chris Buxton cbuxton at menandmice.com
Sat May 10 15:32:07 UTC 2008


You should add a ServerAlias of "wpad", without the ".example.local",  
to your virtual host entry. Firefox uses this URL:

http://wpad/wpad.dat

Therefore, your virtual host must be reachable as "wpad".

Chris Buxton
Professional Services
Men & Mice

On May 10, 2008, at 3:27 AM, Brent Clark wrote:

> Hi
>
> Im really stumped on this one.
>
> Im trying to get WPAD working, but Mozilla Firefox is not playing  
> game.
> IE is working.
>
> If anyone could help, it would be great.
>
> Heres my apache virtual host
> ------------------------------------------
> <VirtualHost *:80>
>    ServerAdmin webmaster at example.local
>    ServerAlias wpad.example.local
>    ServerName wpad.example.local
>    DocumentRoot /var/www/wpad/
>    AddType application/x-ns-proxy-autoconfig .dat
>    AddType application/x-ns-proxy-autoconfig .pac
>    ErrorLog /var/log/apache2/wpad_example_local_error.log
>    CustomLog /var/log/apache2/wpad_example_local_access.log combined
> </VirtualHost>
>
> wpad.dat file
> ------------------
> root at eccowall:/var/www/wpad# cat wpad.dat
> function FindProxyForURL(url, host) { return "PROXY  
> 192.168.111.9:3128;
> DIRECT"; }
>
> My DNS entry:
> --------------------
> wpad    IN      A       192.168.111.9
>            IN      TXT     "service:
> wpad:http://wpad.example.local:80/wpad.dat"
> wpad.tcp        IN      SRV     0 0 80 wpad.example.local.
>
> My DHCP entry:
> option wpad-url code 252 = text;
> option wpad-url "http://wpad.example.local/wpad.dat\n";
>
> If I enter the automatic proxy configuration url, then it works for  
> firefox.
>
> Im really at a loss on this one.
>
> Regards
> Brent Clark
>
>
>
>
>



More information about the bind-users mailing list