shattered-blog.com

投稿記事数[玖阡陌(9100)]以上!PC,ゲーム,カメラ,動画などを、アヤしゐ「專門妖語」を使ッて解説スル!

サーバー情報の表示内容(ServerTokens)変更 (Apache2.2.22 ,Debian7.4)

投稿日:

Apache/2.2.22 (Debian7.4)

/etc/apache2/conf.dsecurity というファイルの ServerTokens 部分

# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of: Full | OS | Minimal | Minor | Major | Prod
# where Full conveys the most information, and Prod the least.
#
#ServerTokens Minimal
ServerTokens OS
#ServerTokens Full

先頭にある「#」を外す(デフォルトではOSになっている)。

・ServerTokens Minimal:Apache/2.2.22 Server at 192.168.0.10 Port 80
・ServerTokens OS:Apache/2.2.22 (Debian) Server at 192.168.0.10 Port 80
・ServerTokens Full:Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u7 mod_ssl/2.2.22 OpenSSL/1.0.1e Server at 192.168.0.10 Port 80

他にも、

・ServerTokens Prod:Apache Server at 192.168.0.10 Port 80
・ServerTokens Major:Apache/2 Server at 192.168.0.10 Port 80
・ServerTokens Minor:Apache/2.2 Server at 192.168.0.10 Port 80

がある。

設定の後、Apacheを再起動。

service apache2 restart

当然だが、rootでないと操作できないので注意。

サーバ構築の実際がわかる Apache[実践]運用/管理 (Software Design plus)
鶴長 鎮一
技術評論社
売り上げランキング: 22,001



プレイステーション クラシック
ソニー・インタラクティブエンタテインメント
2018年12月発売 20タイトル収録
メガドライブミニ
セガゲームス
2019年9月発売 42タイトル収録
メガドライブミニW
セガゲームス
2019年9月発売 42タイトル収録
PCエンジン mini
コナミデジタルエンタテインメント
2020年3月発売 58タイトル収録

-Linux, コンピュータ

Copyright© shattered-blog.com , 2023 All Rights Reserved.