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,13 +18,6 @@ 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 /*.js {
index pihole/index.js
error_page 404 =200 /pihole/index.js;
}
location ~ ^/admin/ {
add_header X-Pi-hole "The Pi-hole Web interface is working!";
location ~ .php$ { location ~ .php$ {
fastcgi_pass 127.0.0.1:9000; fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_split_path_info ^(.+\.php)(/.+)$;
@@ -32,6 +25,14 @@ http {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params; include fastcgi_params;
} }
location /*.js {
index pihole/index.js
error_page 404 =200 /pihole/index.js;
}
location ~ ^/admin/ {
add_header X-Pi-hole "The Pi-hole Web interface is working!";
} }
location / { location / {