Difference between revisions of "Configure HTTP to HTTPs redirection with Nginx"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
  
 
Ref: https://bjornjohansen.no/redirect-to-https-with-nginx
 
Ref: https://bjornjohansen.no/redirect-to-https-with-nginx
 +
 +
 +
 +
server {
 +
listen 80 default_server;
 +
listen [::]:80 default_server;
 +
server_name _;
 +
[[return]] [[301]] https://$host$request_uri;
 +
}
 +
  
 
<pre>
 
<pre>

Latest revision as of 12:29, 26 August 2021

Advertising: