config/nginx/README.md

20 lines
377 B
Markdown
Raw Permalink Normal View History

2020-02-13 23:01:34 +01:00
# Nginx
```sh
DOMAIN=example.com
sudo cp -r sites-available snippets conf.d /etc/nginx
sudo rm /etc/nginx/sites-*/default
sudo ln -s ../sites-available/0nohost /etc/nginx/sites-enabled
sudo ln -s ../sites-available/redirect-ssl-all /etc/nginx/sites-enabled
sudo sed -i s/example.com/$DOMAIN/ /etc/nginx/conf.d/ssl.conf
```
## Certificate Reload
```sh
nginx -s reload
```