In the future, maybe you can consider to setup an OpenliteSpeed to handle the https and websites without a proxy.
The force www and SSL can be done by the following rewriterules.
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ https://www.example.com/$1...