隨筆-208  評論-469  文章-30  trackbacks-0

          用途:在目錄下如果沒有默認首頁面(如index.html default.htm)時防止用戶訪問web時瀏覽目錄
          打開httpd.conf
          查找Options Indexes FollowSymLinks
          修改為:
          Options -Indexes FollowSymLinks

          修改保存退出,重新啟動apache
          訪問http://127.0.0.1如果看到以下提示說明修改成功

          Forbidden

          You don't have permission to access / on this server.


          Apache/2.0.53 (Unix) Server at 192.168.0.1Port 80
          ?
          ?
          ?
          開啟瀏覽:
          <Directory />
          ??? Options FollowSymLinks
          ??? AllowOverride None
          ??? Options Indexes?????????? #就加這句就可以了,目錄按需要選擇
          </Directory>
          posted on 2007-10-29 02:15 EricWong 閱讀(5353) 評論(0)  編輯  收藏 所屬分類: Java
          主站蜘蛛池模板: 临颍县| 衡阳市| 永清县| 涪陵区| 青浦区| 大连市| 西藏| 封开县| 鸡西市| 荣成市| 绩溪县| 萍乡市| 兴义市| 岐山县| 尚义县| 松溪县| 嘉黎县| 沙河市| 葫芦岛市| 定陶县| 双牌县| 松溪县| 万山特区| 崇州市| 乐至县| 五华县| 侯马市| 建昌县| 通辽市| 雅江县| 宁国市| 彰武县| 华亭县| 南靖县| 南郑县| 建湖县| 胶南市| 增城市| 育儿| 高唐县| 汉寿县|