浏览代码

HTTP redirection

Bob Mottram 11 年前
父节点
当前提交
8a71300358
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      beaglebone.txt

+ 3
- 0
beaglebone.txt 查看文件

2512
     index index.html index.htm;
2512
     index index.html index.htm;
2513
     server_name mydomainname.com;
2513
     server_name mydomainname.com;
2514
 
2514
 
2515
+    # Uncomment this if you need to redirect HTTP to HTTPS
2516
+    #rewrite ^ https://$server_name$request_uri? permanent;
2517
+
2515
     location / {
2518
     location / {
2516
         try_files $uri $uri/ /index.html;
2519
         try_files $uri $uri/ /index.html;
2517
     }
2520
     }