diff --git a/nginx.production.conf b/nginx.production.conf index 7c831f1..ec318a2 100644 --- a/nginx.production.conf +++ b/nginx.production.conf @@ -1,6 +1,10 @@ http { server { - listen 80; + listen 80 default_server; + server_name _; + return 301 https://$host$request_uri; + } + server { listen 443 ssl; index index.html; include /etc/nginx/mime.types;