/icons/ /manual/
/icons/ /manual/ を表示させないのがいいらしい
2009/05/29(金) 21:56 ― taki
debian lenny の apache2 では、/icons/ や /manual/ あたりの設定がちょっと変わっているので忘れないようにメモ。
icons の設定は、ここ
# vi /etc/apache2/mods-available/alias.conf
<IfModule alias_module>
#
# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL. So "/icons" isn't aliased in this
# example, only "/icons/". If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings. If
# you do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>
ここの Alias の設定を変えれば iconsディレクトリィは見えなくなる。 具体的には、
Options -Indexes -MultiViews
わざわざ公開する必要のない /manual/ の設定はここ。
# vi /etc/apache2/conf.d/apache2-doc
Alias /manual /usr/share/doc/apache2-doc/manual/
<Directory "/usr/share/doc/apache2-doc/manual/">
Options Indexes FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
AddDefaultCharset off
</Directory>
ここの Alias の設定を変えれば apache2 のマニュアルを公開しなくなる。 こんな感じに
Options -Indexes -FollowSymlinks
icons くらい表示されても別に気にする事は無いだろうし、マニュアルが表示されてバージョンがバレてしまうといっても、ウェブで Apache2 の設定なんちゅうのを公開するんだからあまり関係ないけど気になる人は参考にしてください。
キーワード:
参照:[本日のメニュー]