git://git.halfball.org
/
ansiblebook.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e128161
)
Redirect http to https
author
Lorin Hochstein
<lhochstein@netflix.com>
Tue, 7 Feb 2017 05:10:01 +0000
(21:10 -0800)
committer
Lorin Hochstein
<lhochstein@netflix.com>
Tue, 7 Feb 2017 05:10:01 +0000
(21:10 -0800)
ch13/nginx/ghost.conf
patch
|
blob
|
history
diff --git
a/ch13/nginx/ghost.conf
b/ch13/nginx/ghost.conf
index
e3cf4b5
..
25b200e
100644
(file)
--- 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;