[NGINX] userdir 추가
location ~ ^/~([^/]+)/(.+\.php|\.htm)$ {
if (!-f /home/$1/www/$2) {
rewrite ^ 404;
}
alias /home/$1/www/$2;
}
location ~ ^/~([^/]+)(/.*)?$ {
alias /home/$1/www$2;
autoindex on;
}
[NGINX] userdir 추가
location ~ ^/~([^/]+)/(.+\.php|\.htm)$ {
if (!-f /home/$1/www/$2) {
rewrite ^ 404;
}
alias /home/$1/www/$2;
}
location ~ ^/~([^/]+)(/.*)?$ {
alias /home/$1/www$2;
autoindex on;
}