Allow the subdomain conf to show non php files

This commit is contained in:
quietsy 2022-01-14 16:13:32 +02:00
parent 958df88502
commit 7f4f9261a0

View File

@ -1,4 +1,4 @@
## Version 2022/01/12
## Version 2022/01/14
# Make sure that your dns has a cname set for dashboard
server {
@ -37,6 +37,14 @@ server {
allow 192.168.0.0/16;
deny all;
try_files $uri $uri/ /index.php?$args =404;
}
location ~ \.php$ {
allow 10.0.0.0/8;
allow 172.16.0.0/12;
allow 192.168.0.0/16;
deny all;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;