5

Apache2 ssl + virtualhosts of the same domain

view full story
linux-howto

http://serverfault.com – My webserver hosts several subdomains (vhosts) of a website, say sub1.example.com and sub2.example.com. The only difference between these vhosts is the documentroot. Everything else is shared across vhosts. Now I would like to do the same for HTTPS, but of course ssl + virtualhost is tricky. The good thing is that my SSL certificate is valid for my complete domain. Hence I don't need to specify per-vhosts certificate. The only thing that I want to specify per vhost is the document root. The FAQ says: Name-Based Virtual Hosting is a very popular method of identifying different virtual (HowTos)