http://httpd.apache.org/docs/1.3/mod/core.html#options
這邊有更詳細的 .htaccess 用法說明
※ 引述《chiouss (Heart-shaped chant)》之銘言:
: ※ 引述《paulyanzi (消失)》之銘言:
: : /home/userA/public_html/ --> 無法顯示Indexes
: : http://xxx/userA
: : /home/userA/pulbic_html/others/ -->可以Indexes
: : http://xxx/userA/others
: : /home/userA/pulbic_html/others2/ -->可以Indexes
: : http://xxx/userA/others2
: 一種做法是在 /home/userA/public_html/.htaccess 裡面放
: Options -Indexes
: 然後在要顯示 Indexes 的目錄裡面 .htaccess 加上
: Options Indexes
: 要偷懶一點的話......
: touch /home/userA/public_html/index.html
: 這樣就看不到了 :p
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.116.250.14
嗯,這個辦法比較好!
順便分享一下