Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

OS version: OS X 10.8.2
PAC file path: http://localhost/proxy.pac
Target applications: Safari, Tweetbot
Example rule in .pac:

if (shExpMatch(url, '**')) return 'SOCKS5';

In Chrome, the SOCKS5 proxy works perfectly, but Safari/Tweetbot just can't access the matched URL.

It looks like the server of matched URL is down for Safari/Tweetbot.

I took a look at logs in, but everything is fine.

I wonder if there's a way to make .pac works for sandboxed application?

share|improve this question
up vote 1 down vote accepted

OK, I figured out how to fix this problem, write rule like this:

if (shExpMatch(url, '**')) return 'SOCKS5;SOCKS';

Or setup a HTTP proxy with Privoxy, then write rule like this:

if (shExpMatch(url, '**')) return 'PROXY';

8118 is the default port for Privoxy.

I prefer the second way, it seems more stable though I haven't prove it yet.

share|improve this answer

Because of unknown reasons, from now on you should setup the proxy server in System Network Settings first and than you can use your PAC file as usual.

In other words, check both Autoproxy and Socksproxy in System Network Settings.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.