Safari 5.1 ignores .pac file

I've just upgraded to Lion, however, it appears Safari is ignoring the .pac file I've been and was using to configure the proxy settings. Chrome obeys the file and routes properly. It almost looks like it's skipping the FindProxyForURL function.


Is anybody else experiencing this?


Does anybody have a fix?


Thanks

Posted on Jul 21, 2011 8:08 AM

Reply
3 replies
Sort By: 

Jul 24, 2011 10:50 PM in response to SpaceAge

i am having the same issue.


pac file works fine with Safari back in Snow Leopard 10.6.8, now it does not work with Lion 10.7, however, firefox seems to be working with the same pac file in Lion 10.7


i checked the Console message, and find some error messages like:


deny file-read-data /path/to/pacfile

Reply

Jul 25, 2011 4:50 AM in response to SpaceAge

Because of the way Lion's sandboxing mechanism works, having a locally-stored .pac file will not work. Store your .pac on a local server and enter it's address as "http://www.server.com/mypacfile.pac" and it'll work. Credit goes to user FreeWizard, as they posted this solution in the following thread:


https://discussions.apple.com/thread/3202499?answerId=15729635022#15729635022

Reply

Jul 25, 2011 5:35 AM in response to SpaceAge

Thanks to the info about sandboxing, I've figured done a workaround by enabling web sharing and putting the proxy file on the local host (ie http://localhost/mpacfile.pac). This helps me because it doesn't make all my requests go to the remote sever before determining if it should go to the proxy or not.

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari 5.1 ignores .pac file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.