Skip to content

Instantly share code, notes, and snippets.

@ptzn
Created November 11, 2010 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptzn/672690 to your computer and use it in GitHub Desktop.
Save ptzn/672690 to your computer and use it in GitHub Desktop.
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