Univention Bugzilla – Bug 48745
Do not duplicate Virtual Hosts entries of Let's encrypt
Last modified: 2019-09-19 07:31:13 CEST
The letsencrypt app defines a VirtualHost for every domain (letsencrypt/domains). Instead of creating one VirtualHost for every domain it should be possible to create a single VirtualHost with aliases for every other domain name. <VirtualHost *:443> IncludeOptional /etc/apache2/ucs-sites.conf.d/*.conf ServerName example.com ServerAlias www.example.com ServerAlias www.example.net SSLEngine on … </VirtualHost> Or does anything speak against this? I don't see any technical problem.
The idea with the virtual hosts was that you can use e.g. the ucs root certificate for your default domain and a letsencrypt one for any additional domains (see bug #48204).
(In reply to Jannik Ahlers from comment #1) > The idea with the virtual hosts was that you can use e.g. the ucs root > certificate for your default domain and a letsencrypt one for any additional > domains (see bug #48204). My proposal is not about having 1 virtual host entry at the end. You can have one for letsencrypt and one for the default UCS domain (=2 vhosts). But you don't need to create a virtual host for every let's encrypt domain but only one with all other domains as alias (as the content of the VHosts is always equal).