Results 1 to 3 of 3

Thread: autoconfiguration proxy.pac problems

  1. #1
    andrewfeberwee NNTP User

    Default 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 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, "", ""))
    return "DIRECT";
    return "PROXY";

    and my browser set to automatic proxy configuration script

    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.

  2. #2
    Join Date
    Jun 2008
    Queensland, Australia

    Default Re: autoconfiguration proxy.pac problems

    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


  3. #3
    Join Date
    Jun 2008
    Blog Entries

    Default Re: autoconfiguration proxy.pac problems

    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

    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 will resolve to by the clients (it's the clients that have to resolve this, not squid, or the webserver).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts