Re: Squid as Web SERVER (for .pac files)?

From: Dancer <>
Date: Fri, 08 May 1998 01:56:23 +1000

I can type it out from memory, if you want:

echo "HTTP/1.0 200 Eat this"
echo "Content-type: application/x-ns-proxy-autoconfig"
echo "Cache-control: no-store"
echo ""
cat /usr/local/etc/autoproxy.pac
/bin/sleep 5 # Occasionally necessary to let buffers flush

If you hang that off port 80, then any web-request that comes in will
get your autoproxy script, no matter what they actually ask for.


Juan Carlos Leon wrote:
> On Thu, 7 May 1998, Dancer wrote:
> > If you are giving them a proxy config via a PAC file, there's no reason
> > to put squid on that port. Put it in another. Put it on another machine.
> > Put it anywhere. The PAC file tells them where to go.
> >
> > You don't really need to run a whole web-server to deliver it. I use a
> > shell-script through inetd.
> Nice, can you give us a copy of your shell-script?
> Juan
> Area Administracion Sistemas
> Sistemas y Proyectos
> Banco Continental S.A.

Version: 3.1
GAT d- s++: a C++++$ UL++++B+++S+++C++H++U++V+++$ P+++$ L+++ E-
W+++(--)$ N++ w++$>--- t+ 5++ X+() R+ tv b++++ DI+++ e- h-@ 
Received on Thu May 07 1998 - 09:02:24 MDT

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