Total Pageviews

Saturday, 23 January 2016

配置Nginx强制使用HTTPS

编辑配置文件,如下

server {
    listen      80;
    server_name urdomain.com;
    rewrite  ^   https://$server_name$request_uri? permanent;
}