首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

nginx的mongodb的gridfs模块装配

2012-08-10 
nginx的mongodb的gridfs模块安装git安装nginx-gridfs//为访问s1.111du.com的server增加配置server {listen

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

热点排行