Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
- }
Add Comment
Please, Sign In to add comment