From: Lorin Hochstein Date: Tue, 7 Feb 2017 05:10:01 +0000 (-0800) Subject: Redirect http to https X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=61367904ce103b183cca04a6520eb6f6cda254b7;p=ansiblebook.git Redirect http to https --- diff --git a/ch13/nginx/ghost.conf b/ch13/nginx/ghost.conf index e3cf4b5..25b200e 100644 --- a/ch13/nginx/ghost.conf +++ b/ch13/nginx/ghost.conf @@ -3,8 +3,11 @@ upstream ghost { } server { - listen 80; + return 301 https://$host$request_uri; +} + +server { listen 443 ssl;