I have installed a wildcard SSL certificate using WHM but when ever i enter https://m.domain.com it took me to the https://domain.com. But if i use http://m.domain.com it goes to the correct directory.
After searching in google i found out that it’s a SSL configuration error. When you install a SSL you will have to reconfigure the
certificate for the subdomain.
You can find the solution here : http://forums.cpanel.net/f5/ssl-certs-wildcard-domains-across-different-hosts-169030.html#post701022
This is correct post
You can install a wildcard SSL onto the main shared IP, but it will end up installing as the user nobody and have to be manually modified to change it if you want to have additional subdomains on the SSL certificate.
The modification would be in /var/cpanel/userdata/nobody location to copy the existing *.domain.com_SSL to /var/cpanel/userdata/username location (replacing username with the actual username for the domain account), then changing it to match the subdomain name and modifying the paths to the user and changing nobody to the username.
Here’s an example of what the /var/cpanel/userdata/nobody/*.mydomainisgreat.com_SSL file would look like that needs modified:
The lines needing changed would be these:
Sometimes, the documentroot: line also needs changed if it isn’t pointing to that user’s /home/username/public_html path.
The nobody user would be changed to the username for the cPanel account with the subdomain, while the homedir would be /home/username instead.
So, let’s say you have pandas.mydomainisgreat.com as the subdomain needing the wildcard SSL on the great cPanel username account, you’d do:
cp /var/cpanel/userdata/nobody/*.mydomainisgreat.com_SSL /var/cpanel/userdata/great/pandas.mydomainisgreat.com_SSL
Then in the copied file, you’d change it to the following:
At that point, you’d then save the file, copy Apache as a backup, rebuild Apache configuration and restart Apache:
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak101013
That’s how you get a wildcard subdomain SSL certificate working on a shared IP when installed for the user nobody. You should then be able to do the same for any subdomains on that domain on other accounts so long as you modify the paths and user properly for each.
if you don’t know how to find that file to edit. You should login to SSH using putty or similar software and navigate.
some use full unix commands
cp : copy a file
cp filename filename.backup : copies filename to filename.backup
cp -a /home/burst/new_design/* /home/burst/public_html/ : copies all files, retaining permissions form one directory to another.