Darylrese Posted February 8, 2013 Posted February 8, 2013 Hi guys, Looking to create a local proxy.pac file which adds proxy exclusions for apple devices so that they can access local resources such as internal mail when using our wifi. What do i need to do? I have created a site in IIS on our exchange server called PAC and placed the proxy.pac file in there but having difficaulties figuring out ip address / host names etc I just want them to be able to type in the server name and port or a simple address, say http://server:8081 into the proxy setting on the device Has anyone created a PAC file for ipad / i phone before? If so how and was it successful? Many thanks
Darylrese Posted February 8, 2013 Author Posted February 8, 2013 indeed i have. I just need to figure out a way of hosting it correctly (What to put in IP Address / port) so that it is discoverable- sorry i am a bit of a noob with IIS! Also i just created the .pac file in a textfile and saved it as proxy.pac...is this right?
FN-GM Posted February 8, 2013 Posted February 8, 2013 Thats right. Have you created an IIS website? What version of IIS?
Darylrese Posted February 8, 2013 Author Posted February 8, 2013 (edited) I click add site and put these details in: I thought then you would type in the servername:8082 and it would work? The Quaritine Digest site has servername:8081 and works just fine for Sophos PureMessage The Proxy.pac is in the pac folder inside inetpub folder Edited February 8, 2013 by Darylrese
FN-GM Posted February 8, 2013 Posted February 8, 2013 Looks all good to me. To make it so you dont need to specify a file you will need to make the .pac file the default document.
WithoutMotive Posted February 8, 2013 Posted February 8, 2013 I just stuck ours on the root of the web server and put the internal URL in the Wifi settings: http://webserver/wlanproxy.pac. Works a treat.
Darylrese Posted February 8, 2013 Author Posted February 8, 2013 (edited) hmmmm does this look right for the proxy.pac? function FindProxyForURL(url, host) { // variable strings to return var proxy_yes = "PROXY 10.160.2.6:8080"; var proxy_no = "DIRECT"; if (shExpMatch(url, "https://mca-sr-ex1/exchange*")) { return proxy_no; } if (shExpMatch(url, "http://www.myotherwebsite.com*")) { return proxy_no; } if (shExpMatch(url, "http://www.my3rdlocalsite.com*")) { return proxy_no; } // Proxy anything else return proxy_yes; } Ive just placed it in inetpub > wwwroot Browsing to http:/servername/proxy.pac in explorer just gives this error: Connecting to the wifi and setting proxy to auto and typing path http://servername/proxy.pac doesnt display anything in safari or google chrome Edited February 8, 2013 by Darylrese
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now