Point webserver to different folders for each user (multisite)

This commit is contained in:
southerntofu 2020-04-24 21:39:42 +00:00
parent 659f7d71d6
commit f54a8730d5
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ server {
index index.html;
location ~ ^/~(.+?)(/.*)?$ {
alias /home/$1/public_html/$2;
alias /home/$1/public/html/tilde/$2;
autoindex on;
#try_files $2 $2/ = 404;
}

View File

@ -3,7 +3,7 @@ server {
listen [::]:80;
server_name {{ web_onion.stdout }};
root /home/{{ item.name }}/public_html;
root /home/{{ item.name }}/public/html/onion;
index index.html;
location / {

View File

@ -6,7 +6,7 @@ server {
ssl_certificate /etc/letsencrypt/live/{{ user.name }}.{{ hostname }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ user.name }}.{{ hostname }}/privkey.pem;
server_name {{ user.name }}.{{ hostname }};
root /home/{{ user.name }}/public_html;
root /home/{{ user.name }}/public/html/domain;
index index.html;
location / {