HTTP redirection

This commit is contained in:
Bob Mottram 2014-09-08 22:53:10 +01:00
parent 1d1191f149
commit 8a71300358
1 changed files with 3 additions and 0 deletions

View File

@ -2512,6 +2512,9 @@ server {
index index.html index.htm;
server_name mydomainname.com;
# Uncomment this if you need to redirect HTTP to HTTPS
#rewrite ^ https://$server_name$request_uri? permanent;
location / {
try_files $uri $uri/ /index.html;
}