331
京東網上商城
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
重新啟動即可。
最後更新:2017-04-02 16:48:19