How to install custom nginx module?

Anyone know or could point me in the right direction how to install custom modules in www/nginx?

I tried to do cd /usr/ports/www/nginx and did ./configure --add-module=/root/ngx_http_enhanced_memcached_module --add-dynamic-module=/root/ngx_http_enhanced_memcached_module
But it returned
Code:
./configure: Command not found

I was trying to install this

Compile Nginx with option in ./configure, as static or dynamic module
--add-module=/my/path/to/my/clone/ngx_http_enhanced_memcached_module
--add-dynamic-module=/my/path/to/my/clone/ngx_http_enhanced_memcached_module

Anyone know how can I install a custom module?
I tried make config in www/nginx But adding custom modules is not listed there.

Thank you!
- Vincent
 
The source code for various ports is not really in /usr/ports; instructions are kept there, where to fetch the source code from and how to build the packages. For your case you might try the following: navigate to /usr/ports/www/nginx, run make config and verify DSO loading is enabled (it is enabled by default, if I remember correctly), see if your module is not already there. If not, if you're able to do so, better add a make config option to enable given module, it is not that hard: you'll have to add a handful of lines here and there in the Makefile.
 
The source code for various ports is not really in /usr/ports; instructions are kept there, where to fetch the source code from and how to build the packages. For your case you might try the following: navigate to /usr/ports/www/nginx, run make config and verify DSO loading is enabled (it is enabled by default, if I remember correctly), see if your module is not already there. If not, if you're able to do so, better add a make config option to enable given module, it is not that hard: you'll have to add a handful of lines here and there in the Makefile.
Thank you Bobi B., I Will try that now. I appreciate that. :)
 
Back
Top