This can be seen etc/hosts. I guess this record takes precedence over the individual domains configs that are found in /etc/nginx/plesk.conf.d/vhosts.
/etc/hosts is for the local DNS resolver used by DNS
client requests. Plesk configurations will affect what IPs the services listen on and what the DNS
server will answer (though in such a setup, there will probably another server for requests from outside, not plesk's). hosts is usually checked first, as the default for /etc/host.conf is
, and then the nameservers as configured in /etc/resolv.conf.
So if your etc/hosts has
127.0.0.1 localhost
127.0.1.1 exampledomain.com -- Change this record to the external IP address and reboot.
1) no reboot required, changes in /etc/hosts will be picked up by the resolver immediately
2) 127.x.x.x is not an internal/local IP address (10.x.x.x, 172.x.x.x or 192.168.x.x) but the loopback IP address.
3) OP already wrote that their domain resolves to the external IP 54.191.x.x so your proposed change would have the same result.
4) There probably is no line with exampledomain.com in /etc/hosts, or if there is, it points to the external IP.
5) So /etc/hosts needs to have a line that points exampledomain.com to the local IP:
10.0.0.144 exampledomain.com
Now, when you ping from within the server you will get a response from the external IP and CURL will not hit a wall.
ping would probably work anyway, as ping does not require any forwarding back (backwarding?) to the local host by the NAT.
But curl will still hit a wall.