Fix user sites on /~foobar

This commit is contained in:
root 2022-07-30 20:20:43 -04:00
parent e2811441d0
commit 945b0d0ea9
1 changed files with 4 additions and 0 deletions

View File

@ -59,11 +59,15 @@ location ~ ^/(~|u/)(?<user>[\w-]+)(?<user_uri>/.*)?$ {
autoindex on;
autoindex_exact_size off;
subs_filter_types text/html text/css text/xml;
subs_filter (((file|src|href)=|url\()["']?)/([^/]) $1/~$user/$4 r;
location ~ \.php$ {
fastcgi_pass 192.168.122.30:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
}
location ~ (\.cgi|\.py|\.sh|\.pl|\.lua|\/cgi-bin)$ {
gzip off;
fastcgi_pass 192.168.122.30:9001;