Created
May 13, 2016 11:00
-
-
Save r3nya/d43f741205c28551cc7453497e29c22f to your computer and use it in GitHub Desktop.
This file contains 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 example.com www.example.com; | |
root /var/www/pub; | |
} | |
server { | |
server_name ~^(.*)\.example\.com$ ; | |
root /var/www/pub/$1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment