Skip to content

Instantly share code, notes, and snippets.

@sangheonhan
Created January 11, 2019 07:09
Show Gist options
  • Save sangheonhan/610cfe2b94e4376231ff4e84a23b914e to your computer and use it in GitHub Desktop.
Save sangheonhan/610cfe2b94e4376231ff4e84a23b914e to your computer and use it in GitHub Desktop.
도메인에 따른 nginx의 동적 root 설정을 위한 map 설정
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