bug fix
This commit is contained in:
parent
880137bcef
commit
120b72ca0e
1 changed files with 2 additions and 2 deletions
|
@ -20,10 +20,10 @@ server {
|
|||
# Determine the subdomain and set the root accordingly
|
||||
# subdomains are the default, so that we get 404s for nonexistant subdomains
|
||||
set $subdomain '';
|
||||
set $full_root = $MAIN_WEB_ROOT/_main/www;
|
||||
set $full_root $MAIN_WEB_ROOT/_main/www;
|
||||
if ($host ~* ^([^.]+)\.$DOMAIN$) {
|
||||
set $subdomain $1;
|
||||
set $full_root = $MAIN_WEB_ROOT/subdomains/$subdomain/www;
|
||||
set $full_root $MAIN_WEB_ROOT/subdomains/$subdomain/www;
|
||||
}
|
||||
root $full_root;
|
||||
|
||||
|
|
Loading…
Reference in a new issue