I'm new to apache setup and I've encountered a problem. Couple of them actually but this one is the only one left :)
I have setup a subdomain sub_example_com and two virtualhosts for it: one for port 80, second for 433. I've installed ssl wildecard (like this: http://phaseshiftllc.com/articles/2008/10/27/multiple-secure-subdomains-with-a-wildcard-ssl-certificate.html) to use ssl on subdomains. It works, only issue is that I've a folder structure like /var/www/sub_example_com/
Then I've setup redirect from vhost:80 to vhost:433 using redirect (like this http://wiki.apache.org/httpd/RedirectSSL). So now, when someone uses only http it goes straight to https. Which is nice.
But. When someone enters example_com/sub_example_com/ it does not redirect him. I've tried setting up a ServerAlias but it didn't work. Also it seems a bit quirky to me.
How would you solve this problem? Is possible without using rewrite? Can it be done in definition?
Thanks in advance
PS. I've changed dots in address for dash because I can't post more than two link