In this chapter we have learned the process of creating a simple Nginx handler module. We also looked at which basic structures a new module should define, and how to link them to each other. Finally, we looked at a small handler function that does a basic task, but provides you the basis of writing a much more complicated module.
If you are an Nginx module developer, you must extensively browse other modules and Nginx source code, which will help you learn how to do different things within your code and which API to use in general.
You will also find Nginx Development Kit at https://github.com/simpl/ngx_devel_kit. This will provide you additional conf_set
functions for regexes, complex/script values, paths, and macros to simplify tasks such as checking for NULL values when doing ngx_array_push
and much more, which will simplify your life while writing custom Nginx modules.