BlueOnyx の Web サーバは,DirectoryIndex で指定したファイル (index.html など) が存在しない場合に,ディレクトリ内のファイル一覧をデフォルトで表示するようになっている。セキュリティ上好ましくないので,これを止める方法のメモ。

Apache の設定ファイルを編集し,-Indexes を指定する。
# vi /etc/httpd/conf.d/blueonyx.conf<Directory /home/.sites/*/*/>
#Options -FollowSymLinks +SymLinksIfOwnerMatch
Options -FollowSymLinks +SymLinksIfOwnerMatch -Indexes
</Directory>Apache をリロードする。
# /etc/init.d/httpd reload以上で表示されないようになった。
 
  
  
  
  

コメント