Back at home
They finally got sick of me in hospital and let me go :-)
Time to play with my new toys and see if I can get ADSL2 @ home.
Cheers,
Steve
&ot
We walk many paths, many roads
Till death halts our steps.
Every day a new adventure,
A new journey of self discovery.
function FindProxyForURL(url, host) { return "PROXY <your.proxy.server>:<port>"; }Naturally you can do a lot more with this function, but that is beyond the scope of this article. Setting up apache2 Now that you have a proxy.pac, you need to put it somewhere where clients can access it, and it must have a mime-type of application/x-ns-proxy-autoconfig otherwise it won't work. One way to do this is to create a .htaccess file in the same directory and place in it the following line:
AddType application/x-ns-proxy-autoconfig .pacIn order for apache2 to read .htaccess you need the AllowOverride option in the proper <directory></directory> directive to be All or sufficiently permissive, for example:
<Directory /> Options +FollowSymLinks AllowOverride All </Directory>And we are done Once all that is setup, just point your clients to http://where.proxy.pac.is.hosted/proxy.pac and tell them to use that for automatic proxy configuration. And viola! Well it worked for me anyways... Cheers, Steve