码迷,mamicode.com
首页 >  
搜索关键字:autoindex    ( 106个结果
利用nginx搭建文件服务器
1.安装nginx 安装教程:https://www.cnblogs.com/sunny1009/p/11411673.html 2.配置nginx 配置server节点下的location部分和server下root指定访问目录 3.检查配置文件是否准确 4.重新加载配置文件 5.检验是否搭建成功 ...
分类:其他好文   时间:2019-08-26 14:50:00    阅读次数:87
nginx url自动加斜杠问题
一、首先对比说明Nginx以下两个现象: 1. 访问的uri最后带斜杠 http://localhost/product/ >>>> 查找 product下的index页面,存在就返回;不存在且未开启自动索引目录选项(指令是:autoindex on),则报403错误 2. 访问的uri最后不带斜杠 ...
分类:Web程序   时间:2019-08-08 13:19:22    阅读次数:222
nginx目录遍历漏洞复现
nginx目录遍历漏洞复现 一、漏洞描述 Nginx的目录遍历与apache一样,属于配置方面的问题,错误的配置可导致目录遍历与源码泄露。 二、漏洞原理 1、 修改nginx.conf,在如下图位置添加autoindex on 三、漏洞环境搭建和复现 1、 在ubuntu 16.04安装nginx ...
分类:其他好文   时间:2019-07-23 13:18:35    阅读次数:368
Nginx CONTENT阶段 autoindex、index模块
L 66 autoindex 指令 syntax : on | off; default : off; context : http,server,location; autoindex_exact_size 指令 针对xml格式 向用户显示相对路径还是绝对路径 syntax : on | off; ...
分类:其他好文   时间:2019-04-18 16:56:48    阅读次数:160
nginx 做数据仓库时,location 404 Not Found,发现找不到要用的数据报:Not Found
背景: 获得远程机器某个目录下的数据文件 方案:使用Nginx配置 1、/home/ftp/www/ 下面有images 文件夹,为了访问images下面文件,配置Nginx如下: location /images { root /home/ftp/www/images; autoindex on; ...
分类:其他好文   时间:2019-03-17 15:39:42    阅读次数:201
nginx配置让任何文件在浏览器中显示文本text/plain
例子server{listen81;root/var/www/applog;autoindexon;autoindex_exact_sizeoff;autoindex_localtimeon;location/{}location~.*/188.188.1.*/.*\.log${add_headerContent-Typetext/plain;}}查看博文:nginx配置让任何文件在浏览器中显示文
分类:其他好文   时间:2019-01-31 14:44:28    阅读次数:204
Nginx 下Thinkphp5伪静态
server { listen 80; server_name all.bjed.com; root "F:\www\asdata"; location / { index index.html index.htm index.php; #autoindex on; if (!-e $request ...
分类:Web程序   时间:2019-01-05 19:58:27    阅读次数:179
织梦dede:channel的currentstyle里面加入~autoindex~自增
dede:channel的currentstyle高亮里面加入~autoindex~自增 ...
分类:其他好文   时间:2018-11-03 17:39:20    阅读次数:155
织梦列表页每5行一个ul标签写法
<ulclass="news-list">{dede:list}[field:globalname=‘autoindex‘runphp=‘yes‘]@me=((@me-1)%5==0&&@me!=1)?‘</ul><ulclass="news-list">‘:‘‘;[/field:global]<li><span>[fie
分类:其他好文   时间:2018-10-14 23:04:21    阅读次数:146
nginx1.15.0-window 文件服务器
配置文件>>worker_processes1;events{worker_connections1024;}http{log_formatmain‘$remote_addr-$remote_user[$time_local]"$request"‘‘$status$body_bytes_sent"$http_referer"
分类:Windows程序   时间:2018-06-21 13:51:52    阅读次数:199
106条   上一页 1 2 3 4 5 ... 11 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!