Nginx notes
From raju
useful links
- http://nginx.org/en/docs/http/converting_rewrite_rules.html - no-www and www urls
- https://nginx.org/en/docs/ngx_core_module.html - for a list of available directives in the main context
- https://nginx.org/en/docs/http/ngx_http_core_module.html - for a list of available directives in the http block
- https://nginx.viraptor.info/ - Nginx Location Match Tester
- https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms - Understanding Nginx Server and Location Block Selection Algorithm
log_format
See https://www.linode.com/docs/web-servers/nginx/how-to-configure-nginx/#the-http-block for an example of log_format directive used in the http block.