Help regarding IPs and subdomains on cPanel/WHM
Hello admins. I just installed cPanel on my servers and its perfectly running smoothly without a problem.
I was a got a problem just now, I'm using a VPS single IP and why while I'm tryin' to access my IP it's
showing my primary domain's website I was found similar thread but I don't get it what they said.
How to fix this? I want while accessing my IP its showing normal cPanel default sites page.
and also I have a problem too with a subdomain, I was created a subdomain and while I'm accessing
It's showing my primary domain's index too. UPDATE, It was a mistake I think, It's back normal again
Here's the screenshot.
/http://prntscr.com/2fu4t4
I'm accessing my IP it's showing my primary domain's index. :
/http://prntscr.com/2fu5rl
Please help admin :D fast response :D
-
In the Apache config file /usr/local/apache/conf/httpd.conf the 1st VirtualHost entry should be like this: :80> ServerName DocumentRoot /usr/local/apache/htdocs ServerAdmin Is there another VirtualHost entry before that? 0 -
Hello :) Yes, you will need to ensure the default VirtualHost for your IP address appears first in the httpd.conf file as indicated in the previous post. You can sometimes resolve this issue by running: /scripts/rebuildhttpdconf
Thank you.0 -
quietFinn No there's no vHost entry before this ServerName 50.23.xx.xx DocumentRoot /usr/local/apache/htdocs ServerAdmin cyberidn999@gmail.com suPHP_UserGroup nobody nobody UserDir disabled cPanelMicahel thanks i'll try it :D 0 -
admins i try it but i got a problem root@srv1 [~]# /scripts/rebuildhttpdconf info [rebuildhttpdconf] Missing owner for domain srv1.shanjunisme.com, force loo kup to root Built /usr/local/apache/conf/httpd.conf OK root@srv1 [~]# 0 -
ohhh thanks admin work now with me :D :D thanks [url=http://prntscr.com/2fx0pm]Screenshot by Lightshot 0
Please sign in to leave a comment.
Comments
5 comments