Skip to content

Instantly share code, notes, and snippets.

@islander
Last active October 11, 2016 04:37
Show Gist options
  • Save islander/7448844 to your computer and use it in GitHub Desktop.
Save islander/7448844 to your computer and use it in GitHub Desktop.
local development environment (dnsmasq + nginx)
supersede domain-name-servers 127.0.0.1,8.8.8.8,8.8.4.4
address=/.dev/127.0.0.1
server {
server_name "~^(?<domain>.+)\.dev$";
root /usr/share/nginx/$domain;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment