Webサーバ勉強会
- 2. 2
担当範囲
115 ServerSignature On
116 Alias /icons/ "/var/www/icons/“
117 <Directory "/var/www/icons">
118 Options Indexes MultiViews
119 AllowOverride None
120 Order allow,deny
121 Allow from all
122 </Directory>
- 4. 4
ServerSignature
》 ServerSignature
› On | Off | Email
▷ On
› Apache/2.2.3 (Red Hat) Server at xxx.xxx.xxx.xx Port 80
▷ Off
› 当然ですが何も出ません
▷ Email
› Apache/2.2.3 (Red Hat) Server at xxx.xxx.xxx.xx Port 80
○ ホスト名のところが「 mailto: 」になる
( ServerAdmin で設定した mailaddress)
▷ Core モジュールに含まれています
› httpd.conf | バーチャルホスト | ディレクトリ | .htaccess
- 8. 8
Alias
》 公開コンテンツは基本、 DocumentRoot 以下
のディレクトリに配置する
▷ Alias を利用すると全然別のディレクトリのファイ
ルを DocumentRoot 以下にあるように見せかける
ことが出来る
》 mod_alias モジュールに含まれています
▷ alias も rsync みたいにパスの最後に「 / 」の有無
が重要なので気をつけてね!
▷ alias の行き先(マッピング先)の <Directory> セ
クションのアクセス権にも注意