move nginx php rule from admin/ only to /

This commit is contained in:
diginc
2017-01-17 23:12:24 -06:00
parent 5404d6124f
commit 4f37f2a130

View File

@@ -18,6 +18,14 @@ http {
index pihole/index.php 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 {
index pihole/index.js
error_page 404 =200 /pihole/index.js;
@@ -25,13 +33,6 @@ http {
location ~ ^/admin/ {
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 / {