fix usersites finally

This commit is contained in:
root 2022-10-29 11:42:55 -04:00
parent 1804a5337b
commit 12159d80fd
1 changed files with 8 additions and 7 deletions

View File

@ -11,31 +11,32 @@ location @socket {
proxy_set_header Connection $connection_upgrade;
}
root /vm/$user/public_html;
root /sshfs/home/$user/public_html;
index index.html index.php index.cgi index.py index.sh index.pl index.lua;
ssi on;
location @extensionless-php {
rewrite ^(.*)$ $1.php last;
rewrite ^(.*)$ $1.php last;
}
location ~ \.php$ {
fastcgi_pass unix:/var/socks/php.sock;
fastcgi_pass 192.168.122.30:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
#fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include /etc/nginx/snippets/fastcgi.conf;
}
location ~ (\.cgi|\.py|\.sh|\.pl|\.lua|\/cgi-bin)$ {
gzip off;
fastcgi_pass 192.168.122.30:9001;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include snippets/fastcgi.conf;
}
autoindex on;
autoindex_exact_size off;
#location / {
# #try_files @socket =404;
#try_files @socket =404;
# try_files @socket $uri $uri/index.html $uri.html $uri/ @extensionless-php;
# if (!-d /vm/$user/public_html) {
# return 307 https://vern.cc/;