读书人

nginx的mongodb的gridfs模块装配

发布时间: 2012-08-10 12:19:33 作者: rapoo

nginx的mongodb的gridfs模块安装
git安装nginx-gridfs

//为访问s1.111du.com的server增加配置server {        listen       80;        server_name s1.111du.com;        //所有请求都映射到mongodb的服务中        location / {            //通过field=filename来做数据查询            gridfs imark field=filename type=string;            //mongodb的服务            mongo 127.0.0.1:30001;        }        # redirect server error pages to the static page /50x.html        #        error_page   500 502 503 504  /50x.html;        location = /50x.html {            root   html;        }        # deny access to .htaccess files, if Apache's document root        # concurs with nginx's one        #        location ~ /WEB-INF/ {            deny  all;        }    }


参考网址 https://github.com/mdirolf/nginx-gridfs

读书人网 >其他数据库

热点推荐