1.安装nginx centos/linux下的安装Nginx 2.安装好后进入Nginx目录中 在conf目录下建立一个vhost(ps:名字自己设定)文件夹 其中的$NGINXHOME为你的nginx目录 3.编辑nginx.conf加入如下一句话: 然后保存 4.进入vhost文件夹中建立你需 ...
分类:
其他好文 时间:
2017-09-15 20:33:05
阅读次数:
155
1: 第一步先开打nginx的文件夹遍历功能 vi /usr/local/nginx/conf/nginx.conf #编辑配置文件,在http {下面添加以下内容: autoindex on; #开启nginx目录浏览功能 autoindex_exact_size off; #文件大小从KB开始显 ...
分类:
其他好文 时间:
2017-08-08 15:18:42
阅读次数:
192
以下是我的Nginx配置: 解决办法一(不推荐) 在nginx.conf配置文件对应的位置添加以下两句,表示使用root角色访问,并且允许访问目录。autoindex默认是off。可是这种方式不好,因为别人可以看到自己服务器的目录结构。 注:配置完成之后需要重启nginx服务,方能生效。 解决办法二 ...
分类:
其他好文 时间:
2017-08-05 18:55:34
阅读次数:
249
location / { root /data/www/file //指定实际目录绝对路径; autoindex on; //开启目录浏览功能; autoindex_exact_size off; //关闭详细文件大小统计,让文件大小显示MB,GB单位,默认为b; autoindex_localti ...
分类:
其他好文 时间:
2017-08-03 16:50:57
阅读次数:
119
#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { ...
分类:
其他好文 时间:
2017-07-28 09:53:36
阅读次数:
225
因为域名没有备案,国内地区不能直接域名访问。前段时间在阿里云租购了一台的香港服务器,添加子域名时解析的时发现不能添加直接解析至端口,找了些资料,发现了Nginx绑定域名的方法,在这里做个记录。 1、香港服务器,只做简单跳转配置。 只是简单的跳转,删除了注释的配置和说明。 2、国内业务服务器 配置了简 ...
分类:
Web程序 时间:
2017-07-17 18:36:35
阅读次数:
198
db.createCollection(name, {capped: true, autoIndexId: true, size: 1000, max :100} ) name:集合的名字 capped:true 是否启用集合限制 autoIndex:true(默认是true) 是否使用_id作为索 ...
分类:
移动开发 时间:
2017-07-15 18:57:28
阅读次数:
303
[field:globalname=autoindexrunphp="yes"]@me=@me+1;[/field:global]{dede:globalname=itemindexrunphp="yes"}@me=@me+1;{/dede:global}autoindexitemindex的使用心得区别channelartlist标签下使用{dede:globalname=‘itemindex‘runphp=‘yes‘}@me;{/dede:global}自增1arclist标..
分类:
其他好文 时间:
2017-07-09 10:58:45
阅读次数:
125
?? 改动nginx.config文件内容: location / { #root html; root D:\java; index index.html index.htm; #没有索引页时,罗列文件和子文件夹 autoindex on; autoindex_exact_size on; aut ...
分类:
其他好文 时间:
2017-06-02 09:53:18
阅读次数:
152
在我们做织梦搜索页模板的时候经常会使用到autoindex标签。那么怎么才能实现搜索页可以使用呢?下面给大家分享下解决方法: 打开文件:include/arc.searchview.class.php 找到694行内容$this->dtp2->LoadSource($innertext);修改为:$ ...
分类:
其他好文 时间:
2017-05-21 16:51:46
阅读次数:
193