Domains resolve to cpanel default page

Cygnus_X1

Active Member
Feb 22, 2006
31
0
156
Good day.

I have BIND working correctly for my server, and my domains have their DNS set to my name servers. They are all propogated, as DIG shows my local zone file entries. So BIND looks like its working well. My problem is that all domains are just resolving to the cPanel "There is no website configured at this address." webpage rather than resolving to their account's document locations /home/username/public_html/index.html

I checked httpd.conf, and the virtual hosts entries are there, and show the right document paths, but I can't figure why they're pulling up the cPanel page instead.

All of my hosted accounts/domains are using the same shared IP that the server has.

Any suggestions, pointers, advice would be greatly appreciated :D

Example: gargoylehosting.com

WHOIS: Domain Name: XXXHOSTING.COM

Domain servers in listed order:
NS1.XXXHOSTING.COM
NS2.XXXHOSTING.COM

Sample of httpd.conf virtual host entry:

<VirtualHost xx.xx.xx.xx>
ServerAlias xxxhosting.com
ServerAdmin [email protected]
DocumentRoot /home/username/public_html
BytesLog domlogs/xxxhosting.com-bytes_log
ServerName www.xxxhosting.com

User xxxx
Group xxxx
CustomLog /usr/local/apache/domlogs/xxxhosting.com combined
ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin/
</VirtualHost>
 
Last edited:

Cygnus_X1

Active Member
Feb 22, 2006
31
0
156
I cleaned up a few of those issues, and nothing is showing as FAIL now. However, I still continue to have the same issue of the default cPanel page coming up instead of the correct homepage for gargoylehosting.com. Any other suggestions? :)
 

fwwebs

Well-Known Member
Feb 16, 2004
328
0
166
Make sure that this entry exists for the shared IP before any vhost container. I doubt it's a DNS issue, but do wget from another server to make sure it resolves to the correct IP.

Code:
NameVirtualHost 66.xx.xx.xx
 

Cygnus_X1

Active Member
Feb 22, 2006
31
0
156
I've verified my DNS is correct. I've verified I have NameVirtualHost 66.xx.xx.xx immediately before my virtual host containers begin. I also made sure this was the only instance of NameVirtualHost for this shared IP. Are there any mod directives in httpd.conf that I need to make sure are commented out or uncommented for name based virtual hosting? Everything else with cpanel/WHM seems to have configured great, and works wonderfully except for this one GIANT issue. What good is cPanel/WHM if I cant host websites successfully :-(

I appreciate you guys' help, and would appreciate any other pointers or ideas you may have for me to check. Or tests I should try running to help narrow down this issue.

Thanks!!!
 

Cygnus_X1

Active Member
Feb 22, 2006
31
0
156
OK, just an update for you guys...i got it figured out. In my NameVirtualHost and my vhost containers I was using the IP from my ISP, but should have been using the internal IP of the server on my lan. After I started logically thinking about it, that my server has no clue about the external IP since that's handled by the router, and the router just passes packets to the internal IP. Its lovely when light bulbs go off in your head from time to time, and you figure it out on your own :D

Thanks for your suggestions and help, it did get me thinking, and ultimately led to my revelation. :D
 

dingolingo

Member
Oct 21, 2004
6
0
151
Appreciation

I just happen to have the same problem, and none of the previous threads helped.

So thank you for taking the time to post.
 

Cygnus_X1

Active Member
Feb 22, 2006
31
0
156
no problem :) I'm a newbie to cPanel and Linux admin in general, and always appreciate people's help, so I try to return favors and help where I can. I hope if/when I become experienced enough I will be able to be a regular contributor and helper of newbies :D