Re: Q) How to write "Automatic Proxy Cfg." script ?

From: Edwin Culp <eculp@dont-contact.us>
Date: Mon, 05 May 1997 14:29:44 -0500

Penisoara Adrian wrote:
>
> Hi!
>
> I use Squid Cache (1.1.9) and I would like to know how can I set up
> a script for NNavigator and IExplorer's "Automatic Proxy Configuration"
> feature. Some links to specific documentation, FAQs, etc. are welcomed.
> Thank you very much.
>
> PS: I have an httpd daemon (Apache) on the machine I'm running Squid.
> I believe I already seen smth. related to this, a Java script ?
>
> Ady (@warp.starnets.ro)

A script can be worth a 1000 words

Attached a very simple javascript that works fine
        if not ftp or http or gopher
                go direct
        if one of my domains
                go direct
        else
                proxy proxy.mexcom.net:port

In the browser just configure the automatic proxy:
http://your.proxy.com/proxy.pac

Add the type pac to your srm.conf:
AddType application/x-ns-proxy-autoconfig pac

Everything should work fine.

Ed

Received on Mon May 05 1997 - 12:34:55 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:07 MST