fresh to nginx
Matthieu Tourne
matthieu.tourne at gmail.com
Wed Dec 12 07:32:46 UTC 2012
Hi Zhiming!
On Tue, Dec 11, 2012 at 10:55 PM, 王志明 <wangzhiming1757 at gmail.com> wrote:
> hi all,
>
> I am a fresh man to nginx, who can tell me how to read the nginx source
> code in general, i just trace the source from main() entry, if this is the
> right manner.
>
> and any related documents are welcomed.
>
There are some great guides on the web to get started :
Evan Miller Guide To Nginx Module Development [1] and advanced topics [2]
A bit old, but definitely not dated if you want to learn how it works
inside.
Nginx Guts [3] also has quite a few articles on the core of Nginx.
If you're interested in adding new features, you can find many Nginx [4] or
3rd-party modules [5],
they all add new extensions and capabilities to the core of Nginx.
As for the main() I think it parses the command line options, reads the
configuration and spawn the worker processes.
Then each worker process will start accepting and processing HTTP requests.
Hope that helps,
Matthieu.
[1] http://www.evanmiller.org/nginx-modules-guide.html
[2] http://www.evanmiller.org/nginx-modules-guide-advanced.html
[3] http://www.nginxguts.com/2011/01/phases/
[4] http://wiki.nginx.org/Modules
[5] http://wiki.nginx.org/3rdPartyModules
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20121211/77d06b5a/attachment.html>
More information about the nginx-devel
mailing list