Browse Source

HTTP redirection

Bob Mottram 11 years ago
parent
commit
8a71300358
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      beaglebone.txt

+ 3
- 0
beaglebone.txt View File

@@ -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
     }