jojo's blog--快樂(lè)憂傷都與你同在
          為夢(mèng)想而來(lái),為自由而生。 性情若水,風(fēng)起水興,風(fēng)息水止,故時(shí)而激蕩,時(shí)又清平……
          posts - 11,  comments - 30,  trackbacks - 0
          Apache web server allow directory browsing by default. It’s always good to disable directory browsing in security aspect. To disable directory browsing in apache web server you need to edit the httpd.conf or .htaccess

          Disable directory browsing using .htaccess:-

          • Open your .htacces file
          • Look for Options Indexes
          • If Options Indexes exists modify it to Options -Indexes or else add Options -Indexes as a new line
          • The directory browsing feature should be disable by now

          Disable directory browsing using httpd.conf:-

          • Open your httpd.conf, normally it’s located at /usr/local/apache/conf or /etc/httpd.conf
          • Go to your own Virtual Host settings and look for “Options Indexes
          • Change the Indexes to -Indexes if Option Indexes exists or else add the Options -Indexes line
          • Restart your apache web server.
          • The directory browsing feature should be disable by now

          Disable directory browsing in CPanel Share Hosting enviroment:-

          • Login to your CPanel
          • Click on Index Manager
          • Directory will be list down. Click on the directory name which you want to disable the directory browsing
          • Select No Index and click Save
          • The directory browsing feature should be disable by now

          Once you disable directory browsing, visitor will not able to browse your directory by accessing the directory directly (if there is no index.html file). This will protect your files from exposing to the public.



          http://ubuntuforums.org/archive/index.php/t-234876.html

          posted on 2009-06-09 10:49 Blog of JoJo 閱讀(385) 評(píng)論(0)  編輯  收藏 所屬分類: 每日一記Tool 安裝應(yīng)用

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(6)

          隨筆檔案

          文章分類

          文章檔案

          新聞分類

          新聞檔案

          相冊(cè)

          收藏夾

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 灵武市| 鹤峰县| 墨玉县| 湖南省| 成安县| 亳州市| 宜宾市| 西畴县| 平定县| 城步| 太湖县| 长春市| 南宁市| 惠安县| 广平县| 九江市| 天祝| 宿松县| 灵川县| 安岳县| 于田县| 河北省| 军事| 宜兴市| 邛崃市| 定结县| 仲巴县| 贞丰县| 五河县| 罗源县| 安溪县| 克东县| 正蓝旗| 昌宁县| 宁陕县| 蓝山县| 北票市| 耿马| 沂源县| 故城县| 定远县|