From 90876646674acf2eebf8c782de47ee091d943810 Mon Sep 17 00:00:00 2001 From: Emanuele Bertoldi Date: Sat, 14 Apr 2018 01:10:56 +0200 Subject: [PATCH] Expand docs for default site over HTTPS --- docs/configuration/domains.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/docs/configuration/domains.md b/docs/configuration/domains.md index 0b4810be1..37883f2f2 100644 --- a/docs/configuration/domains.md +++ b/docs/configuration/domains.md @@ -137,15 +137,20 @@ server { return 410; } -# For HTTPS requests you can enable this section: -# (You need a SSL certificate in /etc/nginx/ssl/) -server { -# listen 443 ssl; -# server_name _; -# ssl_certificate /etc/nginx/ssl/cert.crt; -# ssl_certificate_key /etc/nginx/ssl/cert.key; -# return 410; -} +# To handle HTTPS requests too you can uncomment the following section. +# +# Please note that in order to let this work as expected, you need a valid +# SSL certificate for your domain. +# +# By default *.crt and *.key files need to be copied into /etc/nginx/ssl/ folder. +# +# server { +# listen 443 ssl; +# server_name _; +# ssl_certificate /etc/nginx/ssl/cert.crt; +# ssl_certificate_key /etc/nginx/ssl/cert.key; +# return 410; +# } ``` Make sure to reload nginx after creating this file by running `service nginx reload`.