各位先進
我的apache是架在win2000 server上
我的網頁根目錄xxx.xxx.xxx.xxx下的chinese目錄下
若沒有一個index.html或index.php檔的話
在IE上輸入http://xxx.xxx.xxx.xxx/chinese
/就會秀出我的檔案目錄來(Index of /chinese)
請問我該怎麼在apache或win2000 server上設定
讓瀏覽器不會輸出上述訊息??


網路上找來的資料:
===============================================
http : //主機名稱/目錄/
時如果該目錄沒有index.html就會就會列出該目錄下所有檔案,如何不讓Apache
列出目錄下檔案

編輯 httpd.conf 這個檔案,有類似下面的一段文字
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None Order allow,deny
Allow from all
</Directory>
把 Indexes 拿掉後重新啟動 Apatch 即可。
===============================================
出處:
http://rdec.cosa.org.tw/index.php?option=com_content&task=view&id=56&Itemid=25
arrow
arrow
    全站熱搜

    jck11 發表在 痞客邦 留言(0) 人氣()