The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Primary Domain gives "connection refused"

Discussion in 'General Discussion' started by propopulus, Jan 5, 2015.

  1. propopulus

    propopulus Member

    Joined:
    Jan 29, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hello,

    I recently installed a CloudLinux WHM/Cpanel dedicated server in a business.

    It is behind a router (with Static IP), port 80 is forwarded to the dedicated server, along with 2087,2083.

    The fully qualified hostname works. "server.example.com:2087"

    However, the domain name "example.com" is not working. It gives a "connection refused" error.

    I have setup a cpanel account and it should be working. Does anyone know what I should do now?

    -Thanks
     
  2. kiraanmore

    kiraanmore Registered

    Joined:
    Feb 24, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Re: Help: Primary Domain gives "connection refused"

    Hello,

    You should check below things.

    1. If httpd service is running on your server. You can check this using below command :

    /etc/init.d/httpd status

    2. Check if port 80 is open on the server. Try to stop iptables and check your website.

    To stop iptables use below command :

    service iptables stop

    If your website starts working, you would need to open port 80.
     
  3. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Re: Help: Primary Domain gives "connection refused"

    What is main IP for the server? I see obvious configuration conflict here.

    Because your server is LAN-hosted - it must have local IP - and local IP is assigned to virtual host aswell (you can see it in "List accounts"). But in DNS domain must have public IP and therefore when you access example.com with public-ip - apache, that is configured with local-ip can not find it.

    When you access WHM - server does not check for IP - basically it answers on a port, but apache does more IP/domain mapping..

    It won't work without some workaround, manual I suppose.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. propopulus

    propopulus Member

    Joined:
    Jan 29, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Thanks for all your help, it turned out to be I needed to forward the UDP DNS port. That fixed it.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page