Last active
October 11, 2016 04:37
-
-
Save islander/7448844 to your computer and use it in GitHub Desktop.
local development environment (dnsmasq + nginx)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
supersede domain-name-servers 127.0.0.1,8.8.8.8,8.8.4.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
address=/.dev/127.0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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