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: |