Welcome! Log In Create A New Profile

Advanced

Re: Writing first test Nginx module

June 06, 2015 08:27AM
Hi again,

After some searching on Nginx source code, eventually i did find out the issue. The issue was on module type. I had defined it as NGX_STREAM_MODULE, but it must be NGX_HTTP_MODULE because i did intend to add some features to upstream module. Also I had to change configuration directive from NGX_STREAM_SRV_CONF|NGX_CONF_NOARGS to NGX_HTTP_UPS_CONF|NGX_CONF_NOARGS. Type of ngx_*_ctx was not correct and it was changed to ngx_http_module_t .

Sincerely,
Nima
Subject Author Posted

Writing first test Nginx module

nima0102 June 06, 2015 03:25AM

Re: Writing first test Nginx module

nima0102 June 06, 2015 08:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 137
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready