Skip to content

Instantly share code, notes, and snippets.

@178inaba
Last active April 18, 2016 08:33
Show Gist options
  • Select an option

  • Save 178inaba/0b01650c22a11fb2bc5547ea0894cc7e to your computer and use it in GitHub Desktop.

Select an option

Save 178inaba/0b01650c22a11fb2bc5547ea0894cc7e to your computer and use it in GitHub Desktop.
wildcard subdomain for homestead
function FindProxyForURL(url, host) {
if (shExpMatch(host, '*.homestead.app')) {
return 'PROXY homestead.app';
}
if (shExpMatch(host, 'homestead.app')) {
return 'PROXY homestead.app';
}
return 'DIRECT';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment