0

使用apache搭建文件服务器

Posted in Linux at 十二月 17th, 2013 / No Comments »

在httpd.conf或default_server.conf中找到<Directory>标签,在Options中加入 Indexes FollowSymLinks 选项,如:

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
</Directory>
然后重启apache.
如列出的中文文件名有乱码,可以在<Directory>标签中增加
IndexOptions Charset=UTF-8
具体编码由操作系统确定.

http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html
http://www.cnblogs.com/imvkmark/archive/2009/09/07/2291488.html
http://zhidao.baidu.com/link?url=zSETZ4PJPmLbrbHo4Oq-tX9FsLOqy5PElTeRRYW24OV2LOjd4J_I3iW5wPIJr0s2iFPcmfiLBGrFMk6rYEV88K
http://blog.chinaunix.net/uid-26960488-id-3227305.html
Published in Linux
Tags: ,

No Responses to “使用apache搭建文件服务器”

Leave a Reply

请输入算式结果(看不清请点击图片)
(必须)