This commit is contained in:
Joby 2024-10-21 21:38:25 -05:00
parent 880137bcef
commit 120b72ca0e

View file

@ -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;