Source Code Tricks¶
Useful commands for exploring the NGINX source code.
All Directives in Server Context¶
Bash
find src/ -type f -name "*.c" -exec grep -B1 NGX_HTTP_SRV_CONF {} \; | \
grep ngx_string | cut -d\" -f2
All Variables in HTTP Context¶
Bash
find src/ -type f -name "*.c" -exec grep -B2 NGX_HTTP_VAR {} \; | \
grep ngx_string | cut -d\" -f2