l 作者:陈***(chenrui@***.cn)
Apache目录索引的配置 |
使用Apache配置简易的目录索引,登录者可以方便浏览、下载目录之下的内容。
下面以 http://scm12.***.cn/ftp12 为例讲解配置方法。
1、切换到root用户。
2、添加/etc/httpd/conf.d/ftpdata12.conf文件,配置如下
#vi /etc/httpd/conf.d/ftpdata12.conf
Alias /ftp12 /ftpdata12/ <Directory "/ftpdata12/"> IndexOptions Charset=utf-8 Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> |
3、重启httpd服务
#service httpd restart
4、测试网页是否正常