由于之前学习用的都是apsche,所以对ngnix一窍不通,在这里写给正在学习的同行,希望可以帮助到你们: 如果你不会用apache部署tp5的可以查看我之前发布的文章,里面有提到 phpstudy 参考:https://blog.csdn.net/qq_33862644/article/detai ...
分类:
Web程序 时间:
2018-06-21 13:34:46
阅读次数:
234
Nginx 默认是不允许列出整个目录的,需要配置 Nginx 自带的 ngx_http_autoindex_module 模块实现目录浏览功能 。 location / { alias /opt/files/; autoindex on; autoindex_exact_size off; auto... ...
分类:
其他好文 时间:
2018-06-18 12:46:28
阅读次数:
197
https://segmentfault.com/a/1190000012606305 在项目中有一个功能需要在浏览器页面中浏览服务器的目录。服务器使用Nginx,而Nginx提供了相应的ngx_http_autoindex_module 模块,该模块提供了我们想要的功能。 Nginx ngx_ht ...
分类:
其他好文 时间:
2018-06-14 20:51:25
阅读次数:
283
输入或删除注释: LoadModule autoindex_module modules/mod_autoindex.so 1.开启目录浏览权限 <Directory /> Options Indexes FollowSymLinks #这是开启索引目录 AllowOverride None Ord ...
分类:
Web程序 时间:
2018-06-07 14:18:57
阅读次数:
349
location / { root d:\\javaenv\yumrepository; autoindex on; autoindex_exact_size off; autoindex_localtime on; } ...
分类:
其他好文 时间:
2018-04-28 01:31:47
阅读次数:
149
nginx基于用户的访问控制htpasswd命令是Apache的Web服务器内置工具,用于创建和更新储存用户名、域和用户基本认证的密码文件。1.建立口令文件——创建密码文件一般口令文件最好创建在 /usr/local/nginx/ 下,这样是为了方便管理。下面是命令:mkdir /usr/local/nginxhtpasswd -cm /usr//local/nginx/passwd
分类:
其他好文 时间:
2018-04-04 23:39:26
阅读次数:
207
下面介绍一个在window下的nginx的负载均衡配置。 需要你在你的电脑上跑两个tomcat。一个8080,一个9080。 需要一个nginx服务器。 需要修改本机的host 注意:我们这里配置不会再nginx的主配置文件里面配置,因为为了更好的扩展性,以防污染原来的配置文件,我们采用引用的方法, ...
server { listen 80; #端口 server_name localhost; #服务名 charset utf-8; # 避免中文乱码 root /dev/shm/update; #显示的根索引目录,注意这里要改成你自己的,目录要存在 location / { autoindex o ...
分类:
其他好文 时间:
2018-03-06 23:23:08
阅读次数:
230
[field:global name=autoindex runphp="yes"]@me=@me+1;[/field:global] {dede:global name=itemindex runphp="yes"}@me=@me+1;{/dede:global} autoindex itemin ...
分类:
其他好文 时间:
2018-02-11 12:35:10
阅读次数:
333
arclist 标签下使用 [field:global.autoindex/] 默认从1开始 {dede:arclist row='10' titlelen='48' typeid='1' channelid='1'} 从1开始:[field:global runphp='yes' name=aut ...
分类:
其他好文 时间:
2018-01-25 13:09:26
阅读次数:
203