Re: 網頁被看光光了

看板FreeBSD作者時間21年前 (2004/12/30 18:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/14 (看更多)
※ 引述《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
文章代碼(AID): #11qz7X00 (FreeBSD)
文章代碼(AID): #11qz7X00 (FreeBSD)