Apache2 SSL/HTTPS Reverse Proxy Configuration

I wanted to use Senaite with Apache2 as HTTPS terminating reverse proxy. After the help of the community i came up with this working virtualhost config. Maybe somebody needs it as well.

<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
ServerName lis.example.com
ProxyPreserveHost On
RewriteEngine On
RewriteRule ^/(.*) http://localhost:8071/VirtualHostBase/https/%{HTTP_HOST}/senaite/VirtualHostRoot/$1 [P,L]
SSLSessionCacheTimeout  300
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
</VirtualHost>

Useful links were:

There is definitely room for improvement and anwers are welcome.

BR,
Johannes

1 Like