Nik's wiki

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:

SSL location:

See also