diff --git a/ct/poznote.sh b/ct/poznote.sh index 88ab00237..535cd67f8 100644 --- a/ct/poznote.sh +++ b/ct/poznote.sh @@ -68,7 +68,7 @@ map \$uri \$poznote_coop { server { listen 8040; - root /var/www/html; + root /var/www/html/public; index index.php index.html; gzip on; @@ -144,10 +144,12 @@ server { } location ~ ^/data/users/[0-9]+/backgrounds/ { + root /var/www/html; try_files \$uri =404; } location ~ ^/data/css/[A-Za-z0-9._-]+\.css$ { + root /var/www/html; try_files \$uri =404; } diff --git a/install/poznote-install.sh b/install/poznote-install.sh index 55021480d..72513c730 100644 --- a/install/poznote-install.sh +++ b/install/poznote-install.sh @@ -46,7 +46,7 @@ map \$uri \$poznote_coop { server { listen 8040; - root /var/www/html; + root /var/www/html/public; index index.php index.html; gzip on; @@ -122,10 +122,12 @@ server { } location ~ ^/data/users/[0-9]+/backgrounds/ { + root /var/www/html; try_files \$uri =404; } location ~ ^/data/css/[A-Za-z0-9._-]+\.css$ { + root /var/www/html; try_files \$uri =404; }