If you want to write a custom Nginx module, Emiller’s guide is a very good starting point. This article is a wee bit long and you might want to get your hands dirty just to see a full program. In this case you can find this hello world module useful.
I found both of them useful, but the hello world program was simplistic enough for me to miss some concepts, so i wrote this improved hello word module. Continue reading