Category Archives: WebDesign

PAC file proxy

Working PAC file proxy reason for use iPad WebDAV needs local exclusions.

This pac uses Embc Openhive for all traffic except https but then uses https just for Openhive.
Also excludes local traffic from proxy eg WebDAV or local web intranet traffic
Modify host name , change 10.2.*.* to your local ip range proxy if not on Openhive.
Call file proxy.pac or .dat if using local web server remember to add mime type:-
application/x-ns-proxy-autoconfig (as found here http://marckean.wordpress.com/2010/02/09/setting-up-proxy-pac-files-in-iis7-for-proxy-use/)

Proxy.pac file name

Quick test save to c:\proxy.pac point auto section of proxy to :/

file://c:\proxy.pac
So
Copy below to notepad and save as proxy.pac

function FindProxyForURL(url, host) {
//check for local domains
if (dnsDomainIs(host,”localserver-srv01.domain.local”)) {return “DIRECT”;}
//check for local IP addresses
if ((shExpMatch(host,”127.0.0.1″))
|| (shExpMatch(host,”10.2.*.*”)) // Enter you local IP subnets
) {return “DIRECT”;}
//check for short host names
if (isPlainHostName(host)) {return “DIRECT”;}
if (shExpMatch(url, “https://leicester.inthehive.net*”)) {return “PROXY webshield.embc.uk.com:80”;}
if (url.substring(0, 6) == “https:”) {return “DIRECT”;}

//else return proxy
return “PROXY webshield.embc.uk.com:80”;
}

Advertisements

Schools home pages and business home pages

Because of the time it takes to get a class onto the page when teaching I created a school homepage for primary schools.
Teacher tell me the links they want and I add it to their custom page.

http://www.mts-it.com/01schhome/index.htm

This page then developed into custom pages for some schools

http://www.mts-it.com/01schhome/parklands.htm

Then I did the same for some businesses

http://www.mts-it.com/01schhome/europrojects.htm

This was made using dreamweaver and a CSS background tile, each picture is captured and tailored with snagit 300 x 100 then inserted into a table with 3 across and lots down the page,
A meta script refreshed the page every 30 seconds, this helps when changes are made.

I have also created a few support useful links

http://www.mts-it.com/01schhome/support.htm
http://www.mts-it.com/01schhome/satdx.htm
http://www.mts-it.com/01schhome/tools.htm

Hope you find this useful.

20130630-093645.jpg