-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple domains with multiple certificates for Apache2 TLS? #3552
Comments
Yea I don't think we support multiple virtual hosts. But as you indicate you can use ServerAliases (though we're patching that functionality right now in the next 3.1.x release). If you're not married to the domain names maybe you could play some games with them like Of course 2 separate instances (VMs) is an option too. Sorry we can't be much more help! @treydock do you have any more insight? |
Thanks for confirming. |
You can create a CSR that uses Subject Alternative Names to have additional valid names. Example:
That certificate is good for both class.osc.edu and stat.osc.edu. So for OnDemand you create a cert with Subject Alternative Name that corresponds to additional aliases other than main virtual host ServerName. |
So the way we ultimately resolved this was to have a certificate with both names on it. Our Apache config has a ServerName directive for the cert subject and a ServerAlias directive for the alternative name. It was a bit tricky to get a certificate with both domains on it, as we had to coordinate a domain validation with Swarthmore, but once we set it up it worked as advertised. |
Lafayette College and Swarthmore College are collaborating to create a combined HPC cluster.
We'd like to deploy Open OnDemand such that users can use URLs with their home domain name. E.g. firebird.lafayette.edu or firebird.swarthmore.edu.
If I were setting up a generic web site with Apache2 httpd for this scenario, I'd probably set up 2 distinct VirtualHosts, each with their own ServerName. Each VirtualHost would have its own TLS cert which would be contributed by each member institution.
However, I'm not sure the OOD config lets me set things up this way? The docs seem to suggest that everything gets deployed under one virtual host and I could configure a ServerAlias setting for each domain. That would require that the public certificate has both domains on it (in the subject alternative names field). While that is possible, authorizing a certificate with domains from both institutions may prove to be somewhat challenging.
I wanted to make sure I am not overlooking an obvious way to set up multiple VirtualHosts for OOD or otherwise deploy 2 TLS protected domains for the same site.
The text was updated successfully, but these errors were encountered: