Re: 網頁被看光光了

看板FreeBSD作者時間21年前 (2004/12/31 19:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/14 (看更多)
> 自己寫一個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>
文章代碼(AID): #11rJ5m00 (FreeBSD)
文章代碼(AID): #11rJ5m00 (FreeBSD)