Configure HTTP to HTTPs redirection with Nginx
Jump to navigation
Jump to search
Ref: https://bjornjohansen.no/redirect-to-https-with-nginx
server { listen 80 default_server; listen [::]:80 default_server; server_name example.com www.example.com; return 301 https://$server_name$request_uri; }
Advertising: