Point webserver to different folders for each user (multisite)
This commit is contained in:
parent
659f7d71d6
commit
f54a8730d5
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 / {
|
||||
|
|
|
@ -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 / {
|
||||
|
|
Loading…
Reference in New Issue