curl to own host not working
Hi,
I have setup a new cpanel server, but for some reason, curl to itself is not working. For instance:
is working but
is not and gives:
Since I'm using -k, I don't think this is a certificate issue. Also, from the server, I can ping to domainontheserver.com, so I don't think it is a DNS issue. curl
curl https://10.202.100.12:443 -kis working but
curl https://domainontheserver.com:443 -kis not and gives:
root@bezawebs02 [/]# curl https://domainontheserver.com:443 -k -v
* About to connect() to domainontheserver.com port 443 (#0)
* Trying .. Connection timed out
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to hostSince I'm using -k, I don't think this is a certificate issue. Also, from the server, I can ping to domainontheserver.com, so I don't think it is a DNS issue. curl
-
Hello :) I am using this cpanel server behind a firewall. Could this be a nat translation issue (altough I would think the traffic stays inside the server since it is authoritative for that domain).
It's possible your firewall and NAT configuration is causing this problem. Is there any reason you must use the public domain name instead of the local IP address? If so, check your network routing configuration to verify it's setup correctly. Thank you.0
Please sign in to leave a comment.
Comments
1 comment