I am migrating a machine that holds several (Apache
) websites to a new machine where I want one frontend (I have chosen nginx
) acting as a reverse proxy and many small lxc
virtual machines, each dedicated to a specific website.
This is working perfectly in http
but I now have a problem for certificate renewal : I use certbot/letsencrypt for most of the sites with autorenewal but the reverse proxy does not know about the certificates.
Here are the solutions I see:
cron
a copy of the certificates (I don't like the idea because I find it fragile — permissions, renewal failure, etc.)- install the certificates on the reverse proxy (only) and make plain
http
connections to the various websites. This solution has many advantages: all certificates are in the same place, deployment of new services is simple, etc.
Is this a good solution? Will it work with Wordpress (Wordpress is a real pita regarding URLs)?