nginx main function is located core/nginx.c
.
Is performed configure
after a file is generated objs/ngx_modules.c
, which is an inlet structure to load the module, the core code is directly used ngx_modules.c
to compile, link and then all .o
linked together to form an executable file to a file. For example, ngx_event_core_module
the module is located event/ngx_event.c
.