Skip to content

Instantly share code, notes, and snippets.

@rindek
Created November 21, 2012 08:39
Show Gist options
  • Save rindek/4123839 to your computer and use it in GitHub Desktop.
Save rindek/4123839 to your computer and use it in GitHub Desktop.
.proxy.pac
function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.dev")) {
return "PROXY localhost:3000";
}
if (shExpMatch(host, "*.dev2")) {
return "PROXY localhost:3001";
}
if (shExpMatch(host, "*.dev3")) {
return "PROXY localhost:3000";
}
if(shExpMatch(host, "*t.proxylocal.com")) {
return "PROXY localhost:3000";
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment