Domain not working after assigning to the dedicated IP?

jay.c

Member
Oct 30, 2011
5
0
51
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
 

jay.c

Member
Oct 30, 2011
5
0
51
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
 
Last edited:

jay.c

Member
Oct 30, 2011
5
0
51
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 :)