Differences

This shows you the differences between two versions of the page.

Link to this comparison view

litespeed_wiki:cloud:google [2019/08/06 18:54] (current)
Jackson Zhang created
Line 1: Line 1:
 +====== 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]
  
  • Admin
  • Last modified: 2019/08/06 18:54
  • by Jackson Zhang