ソースを参照

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
     }