Apache mod_macro can be used to simplify Apache configurations on servers with large number of identically configured VirtualHosts.
Create your macro configuration. In this example we create two macros, one for http & one for https. You should only enable one of these, and if https is enabled http is automatically redirected to https.… Continue reading “Using Apache mod_macro”
Certbot discourages modifying files in /etc/letsencrypt/ as this can break things. However some services can not read the certificate and key files with their default permissions of being readable only by root. Also some services (e.g. Haproxy) can only use a combined pem file, and can not load individual cert, chain & key files.… Continue reading “Using Certbot –post-hook to configure Let’s Encrypt Certs for use by multiple services”