I have the following construction
Firewall --> Reverse proxy --> Webhost 1
I currently used self signed certificates which I placed on both the Reverse Proxy and Webhost 1 servers.
At the Reverse proxy, every incomming http://example.com requested is rewritten to https://example.com using the following apache config in /etc/apache2/sites-enabled/000-default:
<VirtualHost :80>
ServerName example.com
ServerAlias www.example.com
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.) https://example.com/$1 [R,L]
At the moment my self signed cert has run out of time so my http request is already getting denied at the reverse proxy server.
Now I tryed to setup lets encrypt, but I can’t find clear instructions on how to do this with a reverse proxy setup. I have found some guides like: here, but I can’t decrypt this post in something I can understand.
Now my questions:
1. How should the setup look like?
I think the proper way would be to have letsencrypt running on the reverse proxy only, and have some script copy the cert files also to the webhost behinde it. But I’m unsure about this
2. How to start in my current situation?
I have no idea where to start since my certificate is already expired so i can’t show any verification code on my sites.
To make things worse, I’m actually behind 2 reverse proxy’s. I’m going to look into the option to present my verification code to Let’s Encrypt through my DNS domain hosting provider.