I try to cURL from the server where LS is installed to a domain setup on this server and it does not work:
[root@domains bin]# curl http://mydomains.com/test.php
curl: (7) couldn't connect
WHILE from another server I get this:
[root@www ~]# curl http://mydomains.com/test.php
OK
I can cURL to a domain OUTSIDE the server without any problem.
[root@www ~]# curl http://www.netscape.com is working properly.
When I try to use wget:
[root@domains html]# wget http://www.mydomains.com
--09:04:06-- http://www.mydomains.com/
=> `index.html'
Resolving mydomains.com... 127.0.0.1
Connecting to mydomains.con|127.0.0.1|:80... failed: Connection refused.
We can see that LS tries to resolve the domain name on 127.0.0.1 IP and not on the public IP.
My /etc/resolv.conf have correct nameservers.
When I stop LS and start apache, I can curl from the server to a domain hosted on that server normally.
Any idea what could cause that problem and how to solve it ?
[root@domains bin]# curl http://mydomains.com/test.php
curl: (7) couldn't connect
WHILE from another server I get this:
[root@www ~]# curl http://mydomains.com/test.php
OK
I can cURL to a domain OUTSIDE the server without any problem.
[root@www ~]# curl http://www.netscape.com is working properly.
When I try to use wget:
[root@domains html]# wget http://www.mydomains.com
--09:04:06-- http://www.mydomains.com/
=> `index.html'
Resolving mydomains.com... 127.0.0.1
Connecting to mydomains.con|127.0.0.1|:80... failed: Connection refused.
We can see that LS tries to resolve the domain name on 127.0.0.1 IP and not on the public IP.
My /etc/resolv.conf have correct nameservers.
When I stop LS and start apache, I can curl from the server to a domain hosted on that server normally.
Any idea what could cause that problem and how to solve it ?
Last edited: