Skip to content

Instantly share code, notes, and snippets.

@rindek
Created June 26, 2013 10:49
Show Gist options
  • Save rindek/5866538 to your computer and use it in GitHub Desktop.
Save rindek/5866538 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";
}
@nekath
Copy link

nekath commented Dec 15, 2014

Maybe change dev3 port to 3002 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment