看板FreeBSD
标 题Re: 网页被看光光了
发信站闇黑国度 bbs (Fri Dec 31 19:11:04 2004)
转信站ptt!ctu-reader!ctu-peer!news.nctu!news.csie.ncyu!news.ncyu!news.ccu!ne
※ 引述《[email protected] (阿里安)》之铭言:
> > 自己写一个index.html放在目录下
> > 或是把httpd.conf中选项中的Indexes砍掉
> vi /usr/local/etc/apache2/httpd.conf
> 当修改为:
> Options FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
> 或 Options Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
> 或 Options FollowSymLinks MultiViews
> 或 Options FollowSymLinks MultiViews
> # /usr/local/etc/rc.d/apache2.sh restart
> 情况依旧
> 虽然在 user 下建一空白的 index.html 就能达成让网页不会显示目录内的档案。
> 可是一般 user 并不知道这讯息。
> 请原谅我英文太烂,虽然爬了,可是不懂原讯息是要如何修改。
> 能否详予解说
> 谢谢!
> 以下是 httpd.conf 的内容
> -----------------------------
> # Possible values for the Options directive are "None", "All",
> # or any combination of:
> # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
> #
> # Note that "MultiViews" must be named *explicitly* --- "Options All"
> # doesn't give it to you.
> #
> # The Options directive is both complicated and important. Please see
> # http://httpd.apache.org/docs-2.0/mod/core.html#options
> # for more information.
> #
> Options Indexes FollowSymLinks ← .......我是修改这行
> #
> # AllowOverride controls what directives may be placed in .htaccess files.
> # It can be "All", "None", or any combination of the keywords:
> # Options FileInfo AuthConfig Limit
> #
> AllowOverride None
> #
> # Controls who can get stuff from this server.
> #
> Order allow,deny
> Allow from all
> </Directory>
关掉 MultiViews .....
--
╭┼ Or
igin:
中正大学˙闇黑国度 bbs.cna.ccu.edu.tw
┼╯ A
uthor:
Eintisy 从 FreeBSD.nctu.edu.tw 发表