Skip to content

Commit

Permalink
Update NGINX.md
Browse files Browse the repository at this point in the history
Improve order
  • Loading branch information
A5hleyRich authored Apr 12, 2019
1 parent d9e59ef commit c084d99
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/misc/NGINX.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit c084d99

Please sign in to comment.