Issues with nginx-gridfs 3rd party module

Hi,

I’ve compiled and installed nginx with gridfs module as given by the
instuctions and it got installed successfully. But then when I configure
the nginx.conf with gridfs directive and restart the nginx server it
fails
giving the error as ‘nginx: [emerg] unknown directive “gridfs” in
/etc/nginx/nginx.conf:76’ . Anyone who can help me fix this issue?

environment: ubuntu 14.04, nginx version-1.4.6

Thanks,
Swarna

Switch to openresty with mongodb,

Much easier.

Posted at Nginx Forum:

On Wed, Jan 21, 2015 at 05:50:19PM +0530, Swarna Koushik Debroy wrote:

Hi there,

I’ve compiled and installed nginx with gridfs module as given by the
instuctions and it got installed successfully. But then when I configure
the nginx.conf with gridfs directive and restart the nginx server it fails
giving the error as ‘nginx: [emerg] unknown directive “gridfs” in
/etc/nginx/nginx.conf:76’ . Anyone who can help me fix this issue?

If “nginx -t” gives that error message, then the nginx that you called
does not have the gridfs modules included.

What command or commands do you run when you “restart the nginx server”?

f

Francis D. [email protected]

Its solved… apparently installing nginx from its source code it gets
installed in /usr/local/nginx instead of /etc/nginx. Thanks anyways.