Created
January 11, 2019 07:09
-
-
Save sangheonhan/610cfe2b94e4376231ff4e84a23b914e to your computer and use it in GitHub Desktop.
도메인에 따른 nginx의 동적 root 설정을 위한 map 설정
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
map $http_host $rootpath { | |
~^(?<domain>.+)\.dev$ $domain; | |
default /; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment