mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-20 02:18:51 +00:00
move nginx php rule from admin/ only to /
This commit is contained in:
@@ -18,6 +18,14 @@ http {
|
|||||||
index pihole/index.php index.php;
|
index pihole/index.php index.php;
|
||||||
error_page 404 =200 /pihole/index.php;
|
error_page 404 =200 /pihole/index.php;
|
||||||
|
|
||||||
|
location ~ .php$ {
|
||||||
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location /*.js {
|
location /*.js {
|
||||||
index pihole/index.js
|
index pihole/index.js
|
||||||
error_page 404 =200 /pihole/index.js;
|
error_page 404 =200 /pihole/index.js;
|
||||||
@@ -25,13 +33,6 @@ http {
|
|||||||
|
|
||||||
location ~ ^/admin/ {
|
location ~ ^/admin/ {
|
||||||
add_header X-Pi-hole "The Pi-hole Web interface is working!";
|
add_header X-Pi-hole "The Pi-hole Web interface is working!";
|
||||||
location ~ .php$ {
|
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
||||||
fastcgi_index index.php;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
include fastcgi_params;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|||||||
Reference in New Issue
Block a user