I have full server control (WHM, CPanel, CentOS 5). I set up a sub domain in CPanel.
Now, a very odd problem to me. http://subdomain.site.com is properly going to its root path and displaying as such.
However, https://subdomain.site.com, although the url remains looking just like that, displays the content from the path linked to www.site.com. Has anyone seen behavior like this? If so, what could the culprit be?
I'll need some somewhat detailed responses if I'm going to be editing anything in WHM or via SSH as root - I want to be very careful I don't mess anything up...and this is semi new to me.
Thanks!
update:
Apache Server!
It's a common limitation of Apache/SSL using standard SSL certificates (you can avoid this using wildcard or multi-domain certs as Shane mentioned above)
Since everything is encrypted, Apache doesn't know what is the host header, so he doesn't know which certificate to load.
The first/default vhost binded to the IP of www.site.com (Which is most likely shared with subdomain.site.com) will be used.
You need to use a dedicated IP for each SSL vhosts.
From what I understand you can only have one SSL per cpanel, the way around this seems to be to have a wildcard SSL certificate
Take a look at these
http://regx.dgswa.com/html/content/howto-setup-a-wildcard-ssl-cert-cpanel-whm-running-apache-2
http://forums.hostgator.com/ssl-subdomain-t75423.html