Nginx

From wikinotes

Nginx is kind a content-serving swiss army knife. It fills the roles of

  • webserver
  • proxy server
  • load balancer

Documentation

official docs https://nginx.org/en/docs/
wikipedia: HTTP headers https://en.wikipedia.org/wiki/List_of_HTTP_header_fields

Locations

${PREFIX}/etc/nginx/nginx.conf config
/var/log/nginx/access.log requests
/var/log/nginx/errors.log errors

Tutorials

intro http://nginx.org/en/docs/?&_ga=1.204580502.762888633.1456641309#introduction

Basics

nginx install
nginx config
nginx syntax

Recipes

nginx ssl
nginx reverse proxy
nginx rewrite urls
nginx allowlist or denylist
nginx load balancing

Modules

Supplementary notes about the excellent nginx docs.

General

ngx_stream_ssl_preread_module reuse port for SSL, SSH, etc.

Authentication

nginx basic_auth HTTP basic auth
nginx-auth-ldap Auth via LDAP

Optimization

ngx_http_gzip_module compress payloads