- 论坛徽章:
- 0
|
在网上看到很多人问如何关闭apache目录显示,有没有啊。
可是,我先在的问题是我需要显示目录额。。
我的httpd.conf关于目录的两段配置------------------ <Directory />
- Options FollowSymLinks
- AllowOverride None
- Order deny,allow
- Deny from all
- </Directory>
复制代码- <Directory "/var/www/html">
- Options Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- </Directory>
复制代码 在网上找遍了各种修改的方法,+/-Indexes,加Multiviews,都不管用的(我的机器不是火星机)
我现在实验的结果是
1.主目录下放置a.html b.html, DirectoryIndex a.html,输入地址返回a
2.主目录下放置a.html b.html, DirectoryIndex (为空),输入地址返回apache test页面
3.主目录下什么都不放置,输入地址返回apache test页面
4.主目录下放wordpress的所有文件,输入地址返回server_error
/var/www/html/内的属性为-rwxr-xr-x. 1 root root filename
烧香拜大神 |
|