Created
November 11, 2010 16:08
-
-
Save ptzn/672690 to your computer and use it in GitHub Desktop.
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 { | |
listen 80 default; | |
server_name _; | |
set $domain $host; | |
if ($domain ~ "^(w{3}\.)?(.*?)\.com") { | |
set $domain $2; | |
} | |
location / { | |
root /www/static/$domain/; | |
index index.html index.htm; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment