Google HTTP load balancing enforce HTTPS -
i have http , https load balancer on goole cloud. possible set enforce (redirect) connections https?
not @ load balancer of june 2015.
as alternative, can configure web servers return 301 http requests redirecting https version.
for apache (from https://wiki.apache.org/httpd/redirectssl):
namevirtualhost *:80 <virtualhost *:80> servername www.example.com redirect permanent / https://www.example.com/ </virtualhost> <virtualhost _default_:443> servername www.example.com documentroot /my/document/root sslengine on # .. etc . </virtualhost> for nginx (from https://serverfault.com/questions/67316/in-nginx-how-can-i-rewrite-all-http-requests-to-https-while-maintaining-sub-dom):
server { listen [::]:80; return 301 https://$host$request_uri; }
Comments
Post a Comment