mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-28 11:13:00 -04:00
Allow the subdomain conf to show non php files
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user