From 7f4f9261a08017481dfcae6044c72f764677897d Mon Sep 17 00:00:00 2001 From: quietsy Date: Fri, 14 Jan 2022 16:13:32 +0200 Subject: [PATCH] Allow the subdomain conf to show non php files --- root/dashboard/dashboard.subdomain.conf.sample | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/root/dashboard/dashboard.subdomain.conf.sample b/root/dashboard/dashboard.subdomain.conf.sample index 3f3e57b..ad7730c 100644 --- a/root/dashboard/dashboard.subdomain.conf.sample +++ b/root/dashboard/dashboard.subdomain.conf.sample @@ -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;