Re: [問題] 利用 .htaccess 限制index

看板FreeBSD作者 (小判)時間16年前 (2009/11/15 21:58), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
嗯,這個辦法比較好! 順便分享一下 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
文章代碼(AID): #1B00aI0S (FreeBSD)
文章代碼(AID): #1B00aI0S (FreeBSD)