This question already has an answer here:
I've an Nginx web server running on
192.168.10.1 address. Also, I've pointed my domain to this server. This server has public IP NAT-d through the corporate network. I can access my website fine from an outside network using the domain name. However, I cannot access this website from the server itself or over LAN network (from
curl mydomain.example doesn't respond from the server itself or from secondary server
I can actually put this server's internal IP address inside both server's
/etc/hosts and curl works fine. But I want to solve root cause if possible, anyone faced similar situations? What could be causing this issue?