瀏覽代碼

HTTP redirection

Bob Mottram 11 年之前
父節點
當前提交
8a71300358
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      beaglebone.txt

+ 3
- 0
beaglebone.txt 查看文件

@@ -2512,6 +2512,9 @@ server {
2512 2512
     index index.html index.htm;
2513 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 2518
     location / {
2516 2519
         try_files $uri $uri/ /index.html;
2517 2520
     }