server{
listen9880;
server_nameresServer;
root/home/file/path;#文件根目录路径
autoindexon;
autoindex_exact_sizeoff;
autoindex_localtimeon;
sendfileon;
tcp_nopushon;
}
分类:
其他好文 时间:
2015-06-03 19:55:26
阅读次数:
162
如果在server,http,location中没有定义index,默认情况下是找不到网页的,通过ngx_http_module模块可以实现列出当前目录信息location/{roothtml;indexhome.html;#不存在home.html文件#deny192.168.1.124;autoindexon;}在浏览器里输入http://127.0.0.1会出现下面的内容
分类:
其他好文 时间:
2015-06-03 19:53:47
阅读次数:
133
在wampserver安装目录下\bin\apache\Apache2.2.21\conf\extra\httpd-autoindex.confAlias /icons/ "c:/Apache24/icons/" Options Indexes MultiViews AllowOverr...
分类:
其他好文 时间:
2015-05-15 21:21:22
阅读次数:
205
location /mp3 { alias "d:/mp3"; default_type audio/mpeg; autoindex on; }
分类:
其他好文 时间:
2015-04-27 12:47:01
阅读次数:
190
在{dede:arclist/}这个标签中有个[field:global.autoindex/],是从0开始自增,如果我们想自定义一个数值,比如自定义从2开始。那么就可以写成下面代码:[field:autoindex runphp='yes']@me=$GLOBALS['autoindex']+2;...
分类:
其他好文 时间:
2015-04-26 19:46:05
阅读次数:
134
原网址:http://my.oschina.net/lyx2012/blog/55888[field:global name=autoindex runphp="yes"]@me=@me+1;[/field:global]{dede:global name=itemindex runphp="yes...
分类:
其他好文 时间:
2015-04-15 11:05:52
阅读次数:
109
先看效果在上代码{dede:arclist orderby=pubdate type='commend.' titlelen='26' row='10' channel=3}[field:global runphp='yes' name=autoindex]$a="";$b="";$c="";if ...
分类:
其他好文 时间:
2015-04-05 10:29:59
阅读次数:
126
我们在使用dedecms模板制作文章列表的时候,可能会用到一些特殊的效果。比如,我们希望在文章列表页中每隔6行显示一个分割线。实际上,在dedecms模板中实现这个功能并不复杂。举例来说明:{dede:list pagesize='12'} [field:title/][[field:pubdate...
分类:
其他好文 时间:
2015-04-04 16:24:18
阅读次数:
104
有些时候我们在制作模板的 需要在文章标题前面加上序列号,可以通过织梦自带的autoindex属性来实现,实现方法很简单,只需要在序号递增的地方加上 这段代码就行,[field:global runphp='yes' name=autoindex][/field:global] ,完整代码如下。可以通...
分类:
其他好文 时间:
2015-04-02 11:39:52
阅读次数:
119
有些时候我们在制作模板的需要在文章标题前面加上序列号,可以通过织梦自带的autoindex属性来实现,实现方法很简单,只需要在序号递增的地方加上 这段代码就行,[field:global runphp='yes' name=autoindex][/field:global] ,完整代码如下。可以通过...
分类:
其他好文 时间:
2015-02-25 17:01:44
阅读次数:
160