医大と、官舎にアパッチを置いているのだが、ファイルの一覧を表示させるかどうか。
win98SEとapache2.2
httpd.conf
161行;
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
179行;
#
# 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.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks ExecCGI ←オプション設定、ここでファイル一覧の許可を出す
#
# 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 ←.htaccessによる設定を認めない
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
これで行くと、ディレクトリをブラウザで指定するとファイル一覧が表示される。
192行のIndexesを消すと、403で返ってくる、なんだ、拍子抜けするぐらい単純だ。confの反映にはサーバの再起動が必要だが。
抜粋
Apacheを停止するのには、上で紹介した「Monitor Apache Servers」がタスクトレイにある方はそれをクリックして、起動しているApacheの「Stop」を押します。タスクトレイにない方は「スタート」ボタンから順に「Control Apache Server」までいって「Stop」をクリックします。ApacheのDOS画面が出ている人は「Ctrl+C」で停止できます