mdirolf / nginx-gridfs

Nginx module for serving files from MongoDB's GridFS

Home Page:http://www.mongodb.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nginx configuration file throws error while gridfs configure?

prasadrails opened this issue · comments

I have installed nginx-gridfs and followed https://github.com/mdirolf/nginx-gridfs.

Nginx installed successfully.

In nginx.conf file I have specified as below:

server{
  location /gridfs/ {
  gridfs my_app;
  }
}

It throws an error gridfs is unknown directive.

Restarting nginx: nginx: [emerg] unknown directive "gridfs" in /etc/nginx/nginx.conf:69
nginx: configuration file /etc/nginx/nginx.conf test failed

Any one suggest solution.

Thanks,
Prasad.

I am facing the same issue. Anyone who can help fix this issue?

I finally found a solution. While compiling nginx from its source code and then installing it using make install it gets installed in /usr/local/nginx instead of the /etc/nginx so the path and daemon created needs to be changed in the nginx scipt(which you have to create manually and link it since compiling from source code won't create its own).

Follow this link: http://www.rackspace.com/knowledge_center/article/ubuntu-and-debian-installing-nginx-from-source

At the bottom of the page you'll find the link to create the nginx script manually.