NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
mazhan465
V2EX  ›  NGINX

nginx http 过滤模块 ngx_http_top_header_filter 指针为 0

  •  
  •   mazhan465 · Jun 21, 2017 · 3295 views
    This topic created in 3291 days ago, the information mentioned may be changed or developed.

    写了一个简单的 nginxhtt 过滤模块。调试发现程序运行到 header_filter_init 的时候就崩溃了。 module.c 里面的模块列表都是正常的,说明 config 配置应该没问题。 但是程序运行过程中的 modules[]数组里面在自己的模块 ngx_http_mytest_filter_module 上面的 http 过滤模块(例如 ngx_http_write_filter 和 ngx_http_header_filter 模块)都消失不见,感觉就好像 config 文件里的 HTTP_FILTER_MODULE="ngx_http_mytest_filter_module"这样写的,导致前面的过滤模块丢失。 但是我确实是写的 HTTP_FILTER_NODULE="$NGX_HTTP_FILTER_MODULE ngx_http_mytest_filter_module"这样写的,不知道哪里出了问题

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3980 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:14 · PVG 13:14 · LAX 22:14 · JFK 01:14
    ♥ Do have faith in what you're doing.