Fix user sites on /~foobar
This commit is contained in:
parent
e2811441d0
commit
945b0d0ea9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue