1.
#强制使用https跳转
return 301 https://$server_name$request_uri;
http://www.cnblogs.com/bass6/p/7606965.html