Redirect HTTP to HTTPS in Nginx
Before we redirect all http to https in Nginx, we should have installed an SSL certificate successfully. server { listen 80 default_server; server_name _; return 301 https://$host$request_uri; } This listens on port 80. It’s also the port 80 default server…. Read moreRedirect HTTP to HTTPS in Nginx