Search notes:

nginx

Installing

APT based systems (Ubuntu, Debian, …)

$ sudo apt install -y nginx

Starting/stopping nginx (etc.)

Check if nginx is running:
$ systemctl status nginx
$ sudo ss -plntu | grep nginx
$ sudo systemctl start nginx
$ sudo systemctl stop nginx
$ sudo systemctl restart nginx
Without systemd?
# /usr/sbin/nginx -s stop
# systemctl status nginx

Reload configuration

Check if configuration is ok and only then restart server:
$ sudo nginx -t && sudo nginx -s reload

TODO

APT package python3-certbot-nginx

$ apt show python3-certbot-nginx 2>/dev/null | grep Description
Description: Nginx plugin for Certbot

See also

/etc/nginx is the directory in which nginx is configured.
Configuring nginx as an application gateway for a WSGI server
webserver

Links

Getting started

Index