I have a PHP website on CENTOS which needs to get the contents of its own homepage in order to cache it. To do this I need to use the full URL of it's own domain name that resolves to itself.
I tried doing a Curl -I website.com but the connection comes back as "Connection Refused". It works on any external domain but itself.
I believe there must be a firewall rule that's causing it to block connections from itself but there are none set, and I even tried disabling the firewall completely. There is already a loopback adapter from ifconfig.