学习和应用 Nginx 有一段时间了,大多数与基础配置相关的问题都是通过搜索引擎来解决的,但是这些解决方案比较片面和零碎,看似好像问题解决了,但其实并不明白背后的原理和机制。最好的方式是直接阅读 Nginx 官方文档,官方文档详细系统地对 Nginx 的安装、配置以及原理进行了介绍,并且按模块进行了目录设计,非常方便查阅和学习。
文档参考:
nginx documentation
Introduction
- Installing nginx
- Building nginx from Sources
- Beginner’s Guide
- Admin’s Guide
- Controlling nginx
- Connection processing methods
- Setting up hashes
- A debugging log
- Logging to syslog
- Configuration file measurement units
- Command-line parameters
- nginx for Windows
- How nginx processes a request
- Server names
- Using nginx as HTTP load balancer
- Configuring HTTPS servers
- How nginx processes a TCP/UDP session
- Scripting with njs
- Chapter “nginx” in “The Architecture of Open Source Applications”
How-To
- Building nginx on the Win32 platform with Visual C
- Setting up NGINX Plus environment on Amazon EC2
- Debugging nginx with DTrace pid provider
- Converting rewrite rules
- WebSocket proxying
Development
Modules reference
- Alphabetical index of directives
- Alphabetical index of variables
- Core functionality
- ngx_http_core_module
- ngx_http_access_module
- ngx_http_addition_module
- ngx_http_api_module
- ngx_http_auth_basic_module
- ngx_http_auth_jwt_module
- ngx_http_auth_request_module
- ngx_http_autoindex_module
- ngx_http_browser_module
- ngx_http_charset_module
- ngx_http_dav_module
- ngx_http_empty_gif_module
- ngx_http_f4f_module
- ngx_http_fastcgi_module
- ngx_http_flv_module
- ngx_http_geo_module
- ngx_http_geoip_module
- ngx_http_grpc_module
- ngx_http_gunzip_module
- ngx_http_gzip_module
- ngx_http_gzip_static_module
- ngx_http_headers_module
- ngx_http_hls_module
- ngx_http_image_filter_module
- ngx_http_index_module
- ngx_http_js_module
- ngx_http_keyval_module
- ngx_http_limit_conn_module
- ngx_http_limit_req_module
- ngx_http_log_module
- ngx_http_map_module
- ngx_http_memcached_module
- ngx_http_mirror_module
- ngx_http_mp4_module
- ngx_http_perl_module
- ngx_http_proxy_module
- ngx_http_random_index_module
- ngx_http_realip_module
- ngx_http_referer_module
- ngx_http_rewrite_module
- ngx_http_scgi_module
- ngx_http_secure_link_module
- ngx_http_session_log_module
- ngx_http_slice_module
- ngx_http_spdy_module
- ngx_http_split_clients_module
- ngx_http_ssi_module
- ngx_http_ssl_module
- ngx_http_status_module
- ngx_http_stub_status_module
- ngx_http_sub_module
- ngx_http_upstream_module
- ngx_http_upstream_conf_module
- ngx_http_upstream_hc_module
- ngx_http_userid_module
- ngx_http_uwsgi_module
- ngx_http_v2_module
- ngx_http_xslt_module
- ngx_mail_core_module
- ngx_mail_auth_http_module
- ngx_mail_proxy_module
- ngx_mail_realip_module
- ngx_mail_ssl_module
- ngx_mail_imap_module
- ngx_mail_pop3_module
- ngx_mail_smtp_module
- ngx_stream_core_module
- ngx_stream_access_module
- ngx_stream_geo_module
- ngx_stream_geoip_module
- ngx_stream_js_module
- ngx_stream_keyval_module
- ngx_stream_limit_conn_module
- ngx_stream_log_module
- ngx_stream_map_module
- ngx_stream_proxy_module
- ngx_stream_realip_module
- ngx_stream_return_module
- ngx_stream_set_module
- ngx_stream_split_clients_module
- ngx_stream_ssl_module
- ngx_stream_ssl_preread_module
- ngx_stream_upstream_module
- ngx_stream_upstream_hc_module
- ngx_stream_zone_sync_module
- ngx_google_perftools_module