LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 833|回复: 5

如何把一个网站做成一个列表呀

[复制链接]
发表于 2005-8-29 11:55:33 | 显示全部楼层 |阅读模式
也就是打开好不是网页内容而是在这个目录下的所有文件都可以看到
发表于 2005-8-29 15:25:49 | 显示全部楼层
把web目录配置成可浏览
回复 支持 反对

使用道具 举报

太平洋里的水 该用户已被删除
发表于 2005-8-29 18:43:13 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2005-8-29 18:47:10 | 显示全部楼层
是不是像http://debian.cn99.com/ 这样阿
好像apache就可以的吧。
回复 支持 反对

使用道具 举报

发表于 2005-8-29 19:28:51 | 显示全部楼层
把目录中的内容列举出来是吧?修改httpd.conf(或apache.conf ) apache的配置文件.

配置文件中指定目录加Indexes 属性

Post by 来自[url
http://http://httpd.apache.org/docs/2.0/mod/core.html#directory[/url]
Indexes
    If a URL which maps to a directory is requested, and there is no DirectoryIndex (e.g., index.html) in that directory, then mod_autoindex will return a formatted listing of the directory.

<Directory /web/docs>
Options Indexes FollowSymLinks
</Directory>
回复 支持 反对

使用道具 举报

发表于 2005-8-30 12:54:06 | 显示全部楼层
2楼的兄弟办法简便
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表