From c084d99e5f5a75a8b9feaca28581d1199a78fde4 Mon Sep 17 00:00:00 2001 From: Ashley Rich Date: Fri, 12 Apr 2019 20:48:24 +0100 Subject: [PATCH] Update NGINX.md Improve order --- docs/misc/NGINX.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/misc/NGINX.md b/docs/misc/NGINX.md index d0dea4e0..d7f95114 100644 --- a/docs/misc/NGINX.md +++ b/docs/misc/NGINX.md @@ -19,7 +19,13 @@ server { } ``` -If you wish to protect your site using a [Let's Encrypt](https://letsencrypt.org/) HTTPS certificate, you can do so using the [Certbot webroot plugin](https://certbot.eff.org/docs/using.html#webroot). Your `/etc/nginx/sites-enabled/yourfathom.com` file should be updated accordingly: +If you wish to protect your site using a [Let's Encrypt](https://letsencrypt.org/) HTTPS certificate, you can do so using the [Certbot webroot plugin](https://certbot.eff.org/docs/using.html#webroot). + +``` +certbot certonly --webroot --webroot-path /var/www/yourfathom.com -d yourfathom.com +``` + +Your `/etc/nginx/sites-enabled/yourfathom.com` file should be updated accordingly: ``` server { @@ -46,10 +52,6 @@ server { The `alias` directive should point to the location where your `--webroot-path` is specified when generating the certificate (with `/.well-known` appended). -``` -certbot certonly --webroot --webroot-path /var/www/yourfathom.com -d yourfathom.com -``` - ### Test NGINX configuration ``` sudo nginx -t