Virtualmin: Automatically create SSL based website with a shared SSL wildcard cert?

Posted by Josh on Server Fault See other posts from Server Fault or by Josh
Published on 2010-03-10T22:56:57Z Indexed on 2010/03/19 12:41 UTC
Read the original article Hit count: 259

I managed to configure this very nicely under cPanel/WHM, but I am having trouble configuring it under Virtualmin: when I create a new Virtual Server in Virtualmin, I want it to automatically create an Apache with a subdomain of a shared wildcard SSL domain. So for example, if I create a virtual server for some.example.com, I want two VirtualHosts:

<VirtualHost 1.2.3.4:80>
    ServerName some.example.com
    ServerAlias www.some.example.com some_example.shared-ssl-domain.com
    ...
</VirtualHost>
<VirtualHost 1.2.3.4:443>
    ServerName some_example.shared-ssl-domain.com
    ...
    SSLEngine on
    SSLCertificateFile /path/to/shared-ssl-domain.com.crt
    SSLCertificateKeyFile //path/to/shared-ssl-domain.com.key
    SSLCACertificateFile /path/to/shared-ssl-domain.com.cabundle
</VirtualHost>

in cPanel/WHM I was able to do this easily because the template file contained the <VirtualHost> and </VirtualHost> directives. But Virtualmin's template does now. is there any way I can set up Virtualmin to do what I want?

© Server Fault or respective owner

Related posts about virtualmin

Related posts about apache