20 lines
377 B
Markdown
20 lines
377 B
Markdown
# 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
|
|
```
|