Re: 網頁被看光光了
※ 引述《linss@k.zxp.ks.edu.tw (阿里安)》之銘言:
> > 自己寫一個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 .....
--
╭┼ Origin: 中正大學˙闇黑國度 bbs.cna.ccu.edu.tw
┼╯ Author: Eintisy 從 FreeBSD.nctu.edu.tw 發表
討論串 (同標題文章)
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章