Setup http to https redirect when Google Cloud Load Balancer in front of LSWS
Google Cloud Load Balancing provides high performance, scalable load balancing on Google Cloud Platform. However, it doesn't have http to https redirect function available at the time of this writing.
On this other hand, Google Cloud load balancer needs to talk to the backend LiteSpeed webserver via https only to use http2 and quic across the LB.
If Google Cloud Load Balancer is lack of basic http to https function, How to setup http to https redirection alternatively in LSWS where only 443 configurated, no 80 at all?
You can try the following rewrite rules on LSWS server-level rewrite if LSWS native is used or apache global configuration when control panel used.
rewriteCond %{HTTP:X-Forwarded-Proto} !https rewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]