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.

Domain not working after assigning to the dedicated IP?

Discussion in 'General Discussion' started by jay.c, Oct 30, 2011.

  1. jay.c

    jay.c Member

    Joined:
    Oct 30, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    My server has 2 ips, and I have added the ips to my whm, everything was fine.

    Since I need to get the SSL for one of my domains, I have assign it to my secondary IP.

    But since then, my domain no longer works, the funny thing is, I can't even access my secondary IP from web. ie if I type http://secondip it won't load anything at all (not even the default cpanel page) but I can access https://secondip:2087

    I have tried restarting named, and also flushed my dns cache, still can't solve the problem.

    please help
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    restart apache
    # service httpd restart
    restart your firewall if you have one installed
    restart ipaliases
    #/usr/local/cpanel/whostmgr/bin/ipaliases
     
  3. jay.c

    jay.c Member

    Joined:
    Oct 30, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have done the following:
    service httpd restart
    restart csf
    /usr/local/cpanel/whostmgr/bin/ipaliases restart

    when I restarted httpd I got the following error message:


    [Sun Oct 30 07:51:22 2011] [warn] NameVirtualHost secondip:8081 has no VirtualHosts
    [Sun Oct 30 07:51:22 2011] [warn] NameVirtualHost secondip:8081 has no VirtualHosts
    [Sun Oct 30 07:51:22 2011] [warn] NameVirtualHost secondip:8081 has no VirtualHosts

    and my domain still not working

    not sure why I'm getting the no virtualhost message, as I checked my httpd.conf in /usr/local/apache/conf

    I do get:
    NameVirtualHost secondip:8081
     
    #3 jay.c, Oct 30, 2011
    Last edited: Oct 30, 2011
  4. jay.c

    jay.c Member

    Joined:
    Oct 30, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I fixed it.

    I also restarted nginx and rebuild vhosts from that page, and now I can access to my domain, both http and https

    thanks dalem for your help :)
     
Loading...

Share This Page