<div dir="ltr"><div><div>Hi </div><div><br></div><div>i have written  own nginx module and i have many header ,src and makefiles files .</div><div><br></div><div> my nginx module folder structure look like below</div><div><br></div><div>/product/src/nginx/ngx_http_auth_module.cpp</div><div>/product/src/nginx/Makefile</div><div>/product/src/nginx/config(nginx config file)</div><div>/product/src/common/.cpp files</div><div>/product/lib/.so files</div><div>/product/src/utility/.c and .h files</div><div><br></div><div>i have written my config file like this</div><div>***************************************************************</div><div>ngx_module_type=HTTP_AUX_FILTER_MODULES</div><div>ngx_module_name=ngx_http_auth_module</div><div>ngx_module_incs=$ngx_addon_dir</div><div>ngx_module_deps=</div><div>ngx_module_srcs=$ngx_addon_dir/ngx_http_auth_module.cpp \</div><div>                $ngx_addon_dir/Makefile</div><div><br></div><div>ngx_module_libs=</div><div><br></div><div>. auto/module</div><div>***************************************************************************</div><div>code  build  successfully and generated  ngx_http_auth_module.so file but not correctly since i am getting below  error while loading in nginx.conf file.</div><div><br></div><div>nginx: [emerg] dlopen() "/usr/local/nginx/modules/ngx_http_auth_module.so" failed (/usr/local/nginx/modules/ngx_http_auth_module.so: undefined symbol: ngx_http_auth_module</div><div><br></div><div>Please let me know correct way to do.</div><div><br></div><div>Thanks & Regards,</div><div>Pankaj Chaudhary</div></div></div>