Web Hosting Talk







View Full Version : Cpanel + Subdomains


JamesUS
11-04-2001, 04:53 AM
I've been having a few problems lately with cpanel and subdomains - they just appear to work randomly sometimes and not others.

When I set it up a while ago, it was fine for a bit. I then didn't use the subdomain for a couple of weeks, and when I tried to access it yesterday it wasn't working - a dns error. Today I managed to get my computer to recognise it by adding a record for it to my 'hosts' file - but it still doesn't work from outside of my computer.

And now, it doesn't work at all - no matter what I do I can't seem to get it going again. I've disabled and re-enabled subdomains, fiddled with the NS records in WHM etc.

Has anyone else experienced a similar problem?

Any help is greatly appreciated :)

eva2000
11-04-2001, 02:28 PM
you might need to clean up your httpd.conf file's virtual host and nameserver entries

whm just puts them in in an unorderly fashion :rolleyes:

Walter
11-04-2001, 03:29 PM
Unorderly? Some say chaotic....

Palm
11-04-2001, 03:45 PM
Subdomains and cpanel just don't come together.

In your httpd.conf file make sure the NameVirtualHost
Is the same as VirtualHost

Example.

NameVirtualHost 5.5.5.5:80

<VirtualHost 5.5.5.5>
blah blah blah
</VirtualHost>

Also try to enable subdomains in WHM.

Webdude
11-05-2001, 01:02 AM
It's not the httpd.conf file. WHM tends to screw up dns zones. Delete the zone for that account and recreate it. If you have subdomains in the zone, you will have to put the info back into the zone for those..

Just one of the many bugs it's had forever that still hasnt been fixed...