Skip to content

CyborgParadisum/nginx

 
 

Repository files navigation

study

cmake config

./confiture-test.sh
make mkdir

main modules config

listen: src/core/ngx_cycle.c:618 src/core/ngx_connection.c:657

parse config file:
src/core/ngx_conf_file.c#ngx_conf_handler

commands: - core: ngx_core_commands ngx_core_conf_t - event: - http: ngx_http_core_module.c

modules: modules include commands

event: src/event/ngx_event.c:248

http: src/http/ngx_http_request.c:1526 src/http/ngx_http_request.c:2033 src/http/ngx_http_core_module.c:2499 src/http/ngx_http_core_module.c:1831 src/http/modules/ngx_http_headers_filter_module.c:248 src/os/unix/ngx_darwin_sendfile_chain.c:31 src/os/unix/ngx_darwin_sendfile_chain.c:135

  1. how nginx parse config file
  2. who nginx listen request
  3. data structure of nginx

PCRE: Perl Compatible Regular Expressions

apt install gdb gdb-multiarch

Packages

No packages published

Languages

  • C 96.8%
  • Vim Script 2.5%
  • XS 0.5%
  • Perl 0.1%
  • Makefile 0.1%
  • Shell 0.0%