Adrian 3200fc17e9 | ||
---|---|---|
.. | ||
conf.d | ||
sites-available | ||
snippets | ||
README.md |
README.md
Nginx
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
nginx -s reload