I have two sites that require different domains, but must both use the same server running Apache httpd and also use SSL. Here's the example:
- www.example.com legacy application receiving high traffic
- beta.example.com new site with backward-incompatible changes to url structure
Each domain has a different document root path. SNI is not an option, but I have a wildcard SSL cert for *.example.com. Assigning a second IP is not an option.
How do I configure Apache to use the wildcard SSL certificate for any traffic on port 443, then continue with name-based virtual hosting after the SSL handshake?
In nginx it could be an if-block based on domain name and have the SSL configuration outside of that. Is there an equivalent that will work with Apache 2.2?
Edit: SNI is not an option by request of my client, due to decreased browser support compared to the alternative. I'm looking for some way to serve the cert using the old standard, then apply the classic VHost definitions on the ssl port just like they are applied on port 80.