The issue I am facing:
when i go to http://192.168.0.100/admin/ i get:
Failed Host Check: 192.168.0.100 vs 192.168.0.169, , _, pi.hole, localhost
Details about my system:
raspberry pi 3b+ running dietpi 7.6.2
pihole 5.5/adminFTL 5.7/ FTL 5.10.2
nginx config:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
server_name _;
autoindex off;
access_log /var/log/nginx/local/pihole.access.log;
error_log /var/log/nginx/local/pihole.error.log;
index pihole/index.php index.php index.html index.htm;
location / {
expires max;
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_param FQDN true;
#auth_basic "Restricted"; # For Basic Auth
#auth_basic_user_file /etc/nginx/.htpasswd; # For Basic Auth
}
location /*.js {
index pihole/index.js;
#auth_basic "Restricted"; # For Basic Auth
#auth_basic_user_file /etc/nginx/.htpasswd; # For Basic Auth
}
location /admin {
root /var/www/html;
index index.php index.html index.htm;
#auth_basic "Restricted"; # For Basic Auth
#auth_basic_user_file /etc/nginx/.htpasswd; # For Basic Auth
}
location ~ /\.ht {
deny all;
}
}
it looks like this error has already been fixed before: Failed Host Check · Issue #280 · pi-hole/AdminLTE · GitHub
i tried to edit "/var/www/html/admin/php/auth.php" as suggested in the post but its not there(probably due to the program being updated over 5 years)