From: Lorin Hochstein Date: Tue, 7 Feb 2017 05:55:09 +0000 (-0800) Subject: different redirect strategy X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=6f34c8abaf5f4861cc025ac89e13352f9c4c612f;p=ansiblebook.git different redirect strategy --- diff --git a/ch13/nginx/ghost.conf b/ch13/nginx/ghost.conf index 25b200e..1dadc65 100644 --- a/ch13/nginx/ghost.conf +++ b/ch13/nginx/ghost.conf @@ -3,8 +3,10 @@ upstream ghost { } server { - listen 80; - return 301 https://$host$request_uri; + listen 80 default_server; + listen [::]:80 default_server; + server_name _; + return 301 https://$host$request_uri; } server {