Re: 網頁被看光光了
※ 引述《linss@k.zxp.ks.edu.tw (阿里安)》之銘言:
> 環境:Apache/2.0.52 (FreeBSD) PHP/4.3.10 Server
> 問題:當網址列裡下未指定檔名,apache就會顯示為網站內所有網頁的存放目錄及子目
> 錄,這樣一來,資料不就被人看光光了。
> 請教一下,是該修改 httpd.conf 的哪個地方?
> 謝謝!
自己寫一個index.html放在目錄下
或是把httpd.conf中選項中的Indexes砍掉
<Directory "@@ServerRoot@@/htdocs">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
--
※ Origin: 呼啦貝爾 <hulabear.twbbs.org>
※ From : pc30.csie.ntu.edu.tw
討論串 (同標題文章)
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章
0
18