Redirect Http to Https on Nginx

响应HTTPS号召,开启全站SSL安全连接,301 跳转备忘。

server {
listen 8080;
server_name www.kevin125.com;
return 301 https://$server_name$request_uri;
}