mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-02-04 20:49:31 +08:00
Allow the subdomain conf to show non php files
This commit is contained in:
parent
958df88502
commit
7f4f9261a0
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user