Skip to content

Instantly share code, notes, and snippets.

@pewniak747
Created July 4, 2012 07:31
Show Gist options
  • Save pewniak747/3045918 to your computer and use it in GitHub Desktop.
Save pewniak747/3045918 to your computer and use it in GitHub Desktop.
proxy autoconfiguration
if (shExpMatch(host, "*.dev")) {
return "PROXY localhost:3000";
}
if (shExpMatch(host, "*.dev2")) {
return "PROXY localhost:3001";
}
if (shExpMatch(host, "*.dev3")) {
return "PROXY localhost:3002";
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment