私のWebサーバーでサーバーの状態を有効にする

私のWebサーバーでサーバーの状態を有効にする

Linux Mint 17を実行しているWebサーバーでサーバーの状態を有効にしたいと思います。どこに入れるべきかextendedstatus ON、また何を変えるべきかわかりません。

ベストアンサー1

Webブラウザを介してシステムにアクセスする方法を尋ねると思いますか?http://localhost/sever-status?その場合、これはWebサーバー(通常はApache)の機能です。したがって、インストールし、実行し、ファイルに設定する必要がありserver-statusます。この場所はLinux Mint(Fedoraの場所)とは若干異なる場合がありますが、ファイルを編集する必要があります。extendededstatus/etc/httpd/conf/httpd.conf

Apache設定ファイルはhttpd.conf非常によく文書化されているので、ここで「ステータス」を検索すると、ステータスとアクティベーション方法の両方を見つけることができます。このファイルを編集したら、Apacheを再起動する必要があります。

はい

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
ExtendedStatus On

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost 127.0.0.1
</Location>

モジュールのコメントも削除されていることを確認する必要があります。

LoadModule status_module modules/mod_status.so

おすすめ記事