autoconfiguration proxy.pac problems

I have a LINUX 10.3 installation running most of the standard stuff which comes with it and squid 2.6 and apache 2.2.4

I have a mime type entry as follows
application/x-ns-proxy-autoconfig pac

squid is running normally
root 4054 1 0 21:47 ? 00:00:00 /usr/sbin/squid -sYD

and when I set up my browser with a http proxy of 192.168.1.5 port 3128 it works correctly and log internet access to the squid.log file but when I try to use an autoconfiguration script, procy.pac with entries as follows

function FindProxyForURL(url, host)
{
if (host == “localhost” || isPlainHostName(host) ||
isInNet(host, “192.168.1.0”, “255.255.255.0”))
return “DIRECT”;
else
return “PROXY proxy.lift.com.au:3128”;
}

and my browser set to automatic proxy configuration script
http://192.168.1.5/proxy.pac

I get
Firefox is configured to use a proxy server that can’t be found.

I am stumped, I’m sure I’m missing something pretty basic but I have really no idea what. port 3128 is open on my firewall.

I’m probably displaying my ignorance here, but does the proxy autoconfig service need to be listening on port 80? If no proxy config is in place, then I would have thought that the browser would just assume port 80 for the config url.

Of course, I could be way off… but no-one else has replied :slight_smile:

Paul

First of all that should be .pac, not pac (with a period in front) in the MIME type.

You can test if the webserver is giving out the correct type, do:

wget -S --spider http://192.168.1.5/proxy.pac

It should show the headers which should show that the Content-Type is application/x-ns-proxy-autoconfig.

Also in your proxy.pac, you put in a domain name, are you sure that proxy.lift.com.au will resolve to 192.168.1.5 by the clients (it’s the clients that have to resolve this, not squid, or the webserver).