Have server with installed nginx and php-fpm. Some sctript need access to part of site via curl. But it fails. I tried to run curl on server :
curl -v -i alexcoder.info * About to connect() to alexcoder.info port 80 (#0) * Trying 220.127.116.11... * Connection refused * couldn't connect to host * Closing connection #0 curl: (7) couldn't connect to host
But from network sites available :
curl -v -i alexcoder.info * Rebuilt URL to: alexcoder.info/ * Adding handle: conn: 0x702b10 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0x702b10) send_pipe: 1, recv_pipe: 0 * About to connect() to alexcoder.info port 80 (#0) * Trying 18.104.22.168... * Connected to alexcoder.info (22.214.171.124) port 80 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.32.0 > Host: alexcoder.info > Accept: */* > < HTTP/1.1 200 OK
HTTP/1.1 200 OK
nginx logs does not contain any errors aboout this. I tried to flush iptables rules but it take no effect.
What it may be?