如何编写一个Nginx模块? [英] How to write a Nginx module?
问题描述
我正在尝试查找有关如何为Nginx Web服务器构建模块/插件的教程.
I'm trying to find tutorials on how to build a module/plugin for Nginx web server.
有人可以帮忙吗,我似乎找不到合适的教程.
Can someone help please, I just can't seem to find the appropriate tutorials.
推荐答案
引用文档:
Evan Miller撰写了权威的 Nginx模块开发指南. 但是它的某些部分有些过时了.您已被警告.
Evan Miller has written the definitive guide to Nginx module development. But some parts of it are a little out of date. You've been warned.
github搜索显示了 Nginx开发工具包.好像是 更多最新信息.
A github search turned up the Nginx Development Kit. It seems to be more up to date.
根据我个人的经验,埃文·米勒的指南很有帮助.您还必须对NGINX的工作方式有深刻的了解. Agentzh的教程可以为您提供帮助.
From my own personal experience, Evan Miller's guide was of a great help. You must also have a deep understanding of how NGINX works. Agentzh's tutorial can help you.
阅读他的模块的源代码总是很有帮助的.
Reading the source code of his modules is always helpful too.
还有一个我尚未检查的视频教程,但这看起来不错.
There is also a video tutorial that I haven't check yet, but it seems nice.
这篇关于如何编写一个Nginx模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!