Hi everyone. I have setup Pi-Hole with Nginx and diet-pi.
My Pi-Hole IP: 192.168.91.56
My Pi-Hole hostname: monday
I added the doamin/IP combination (monday.lan | 192.168.91.56), accessed to http://monday.lan/admin/login.php and everything seems fine. But after login and direct to http://monday.lan/admin/index.php, it shows:
Failed Host Check: monday.lan vs 192.168.91.56, monday, pi.hole, localhost
I found some posts but being confused. So I am here and call for help. Thank you!
Details about my system:
/etc/nginx/sites-available/default
# /etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/;
index index.php index.html index.htm index.nginx-debian.html;
server_name "$hostname";
include /etc/nginx/sites-dietpi/*.conf;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php(?:$|/) {
include snippets/fastcgi-php.conf;
fastcgi_pass php;
}
}
What is the relationship between monday.lan and lingcat.cct.lan? What are these local domains being used for? Why does logging in to Pi-hole using the first domain then change over to the second domain? As a reference, if you log in using the domain pi.hole or the IP address, does that work or does that also exhibit some problem?
lingcat.cct.lan is my another server's domain/IP combination assigned to my monday pi hole. I double checked and I figured out that I mistyped in the post again, maybe I copy&paste the wrong domain when I wrote the post. I edited the post again, sorry.
I have dig out that if you want to make to domain/IP combination works in pi hole w/nginx, the hostname has to be the same as the domain you assign. Just like: