I have the same problem than: WIldcard SSL Subdomain Not Pointing at Correct DocumentRoot but the answer does not help me.
I have a Wildcard SSL installed on my Apache server.
With HTTP :
- www.example.com points to documentroot /home/example/public_html OK
- sub.example.com points to documentroot /home/sub_example/public_html OK
Now with HTTPS:
- www.example.com points to documentroot /home/example/public_html OK
- sub.example.com points to documentroot /home/example/public_html (NOK: same as main domain above).
I have checked the .conf files into /etc/apache2/sites-available and they are OK, at least for the documentroot directive.
Why subdomain points to the main domain documentroot? and this only when SSL?
THANKS