看板FreeBSD
标 题Re: 网页被看光光了
发信站呼啦贝尔 BBS (Thu Dec 30 17:37:09 2004)
转信站ptt!ctu-reader!ctu-peer!news.nctu!netnews.chu!Leo.mi.chu!zoonews.ee.nt
※ 引述《[email protected] (阿里安)》之铭言:
> 环境: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