• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 求教,怎樣配置mod,才能禁止目錄下無index文件時,目錄被列表。

    發表于:2007-05-25來源:作者:點擊數: 標簽:
    求教,怎樣配置mod,才能禁止目錄下無index文件時,目錄被列表。 按照某些資料,禁用“LoadModuleautoindex_modulemodules/mod_autoindex.so”后,Apache2.0.49重啟失敗。請列位看看有什么辦法。 goodloveboys 回復于:2004-07-05 10:40:48 Directory/home O

    求教,怎樣配置mod,才能禁止目錄下無index文件時,目錄被列表。


    按照某些資料,禁用“LoadModule autoindex_module modules/mod_autoindex.so”后,Apache 2.0.49 重啟失敗。請列位看看有什么辦法。

     goodloveboys 回復于:2004-07-05 10:40:48
    <Directory /home>
      Options -Indexes
    </Directory>

     kroll 回復于:2004-07-05 10:53:51
    謝謝,照這樣設置以后

    <Directory "C:/www/Apache2/htdocs/bbs">
    Options -Indexes
    </Directory>

    文件不被列表了,可是子目錄還是會列表,怎么辦呢???

     goodloveboys 回復于:2004-07-05 10:57:54
    在/bbs下的 目錄  還會被列表?

     kroll 回復于:2004-07-05 12:08:27
    是的。有些目錄里是沒有index文件的。
    應該跟Apache缺省的目錄屬性有關。最好能把缺省的設置改了,一勞永逸。

     geel 回復于:2004-07-05 21:45:32
    <Directory Your_Root>
    Options None
    </Directory>

     kroll 回復于:2004-07-06 10:30:53
    OK,感謝列位大俠支招。。

     Nanu 回復于:2005-02-21 00:43:21
    呵呵,在目錄里放一個空的或者帶有欺騙性質的index.html不就成了。
    這樣覺得最簡單了。。。 :em03:

     安靜 回復于:2005-02-24 14:06:44
    和樓主一樣 
    <Directory Your_Root> 
    Options None 
    </Directory> 
    更改一后 子目錄的文件還是會被顯示。有辦法解決嗎?

     inse7100 回復于:2005-02-26 03:51:56
    httpd.conf

    <Directory Your_Root> 
    Options -indexes
    </Directory> 

    But if you have something like

    <Directory Your_Root/subdirectory> 
    Options indexes
    </Directory> 

    The setting will overwrite the root setting. Check the subdirectories setting.

    Don't forget, after every change you make for httpd.conf, restart the httpd daemon.

     :em11:

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>