Nginx hosting: common commands

If you host your blog yourself, you will need some commands from time to time. To avoid having to google it every time, I created this overview that serves several purposes. It can be used whether you Nginx self compiled or installed a ready-made package.

Install SSL certificate with certbot:

certbot --nginx -d -d

Test Nginx configuration:

nginx -t or service nginx configtest

Leave a Reply

Your email address will not be published. Required fields are marked *