Nginx

An asynchronous (rather than process-based) web server. http://www.nginx.org

See also | :web:server :https :certbot

Notes

Configuration

http://nginx.org/en/docs/beginners_guide.html
https://help.ubuntu.com/community/Nginx
https://www.linode.com/docs/websites/nginx/how-to-configure-nginx/
https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/

Control

See https://help.ubuntu.com/community/Nginx

sudo service nginx reload
# restart after making configuration changes

Enable site (Debian)

Server blocks

Similar to virtual hosts on Apache HTTPD
https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/

HTTPS server block

http://nginx.org/en/docs/http/configuring_https_servers.html

Location blocks (URL prefixes)

https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms

Location block for simple file browsing

location /browse {
	alias /safe/path/on/disk;
	autoindex on;
}


Backlinks: stack ikiwiki moinmoin certbot django web:server

CC0 / Public domain dedication To the extent possible under law, d3vid seaward has waived all copyright and related or neighboring rights to "Nginx in Grasmere notebook, including code snippets" (why? how?)