zyk198500 发表于 2017-1-8 08:34:34

Apache服务器几点简单配置

1. 禁止目录浏览设置:  
打开conf目录下的httpd.conf文件,然后搜索“Options Indexes FollowSymLinks”
  
去掉 Indexes 也就是变为 Options FollowSymLinks 即可。
  2. 全局默认页面设置
  <IfModule dir_module>
DirectoryIndex index.shtml index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml default.php
</IfModule>
  3. ssi 支持设置:
  
1. 打开conf目录下的httpd.conf文件,搜索“AddType text/html .shtml”,找到:
  # AddType text/html .shtml
# AddOutputFilter INCLUDES .shtml
把这两行前面的#去掉 。
  
2. 然后搜索“Options Indexes FollowSymLinks”
在搜索到的那一行后面添加“ Includes”
即将该行改变为 Options Indexes FollowSymLinks Includes
  重新启动即可。
页: [1]
查看完整版本: Apache服务器几点简单配置