Re: [users@httpd] Re: Reverse proxy to a website with HTTPS

2021-08-26 Thread Scott Trakker
Hello Frank, Thank you very much for your feedback! If I understood your points correctly, the configuration file should look like this: ServerName localhost DocumentRoot /var/www/html/ ServerName [your.domain.com] RewriteEngine on RewriteCond %{SERVER_NAME} =[your.domain.com] RewriteRule ^

Re: [users@httpd] Re: Reverse proxy to a website with HTTPS

2021-08-25 Thread Frank Gingras
This is wrong, actually. Here are the problems: 1) You should redirect to https:// from the :80 vhost, and nothing else 2) You should only proxy to your backend in your :443 vhost 3) If you proxy to http://, you don't need SSLProxyEngine on 4) A :443 vhost requires SSLEngine on, but you likely

[users@httpd] Re: Reverse proxy to a website with HTTPS

2021-08-23 Thread Scott Trakker
I found the solution to my problem! If you want to configure a reverse proxy with HTTPS you have to install the SSL-certificates on the host (and not in the remote server or virtual machine)! This is the final virtual hosts file: ServerName localhost DocumentRoot /var/www/html/ ServerName

Re: [users@httpd] Re: Reverse proxy to a website with HTTPS

2021-08-23 Thread Rainer Canavan
On Mon, Aug 23, 2021 at 10:45 AM Scott Trakker wrote: [...] > The certificate for the subdomain 'nextcloud.jeroenverhoeckx.com' is > installed correctly: No. Having a certificate and actually using it on the https server listening on port 443 are two entirely different things. Try

Re: [users@httpd] Re: Reverse proxy to a website with HTTPS

2021-08-23 Thread Scott Trakker
Hello Good Guy, Thanks for thinking along. The certificate for the subdomain 'nextcloud.jeroenverhoeckx.com' is installed correctly: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Found the following certs: Certificate Name: nextcloud.jeroenverhoeckx.com

[users@httpd] Re: Reverse proxy to a website with HTTPS

2021-08-22 Thread  Good Guy 
On 22/08/2021 21:41, Scott Trakker wrote: I installed the SSL certificate with certbot of Let's Encrypt and I got the message that it was installed correctly. It looks like you also need to install for subdomains such as: *.jeroenverhoeckx.com I use CloudFlare (free version) and they