Nginx
A web server and a reverse proxy.
Learn
Config
The main config file is /etc/nginx/nginx.conf.
It also includes .conf files from /etc/nginx/conf.d.
The sites-enabled and sites-available directories are Debian-specific.
It is recommended to use conf.d.
Use nginx -t to validate configs.
Use nginx -s reload to apply config changes.
By default, Nginx serves static files from /var/www/html or /usr/share/nginx/html.
Default log files:
/var/log/nginx/access.log/var/log/nginx/error.log
SSL location:
/etc/ssl/certs: certificates/etc/ssl/private: private keys
See also
- SSL config generator: https://ssl-config.mozilla.org