Last-modified: 2011-12-26 (月) 01:24:42
Apache/サーバーの統計情報を確認したい

概要

サーバーの統計情報を確認したい。

手順

おまけ

バーチャルホスト設定。

  • httpd.confを編集。
    • 外部設定ファイル読み込み化。
      Everything is expanded.Everything is shortened.
        1
        2
      
      -
      !
      
      # バーチャルホスト設定
      Include conf/extra/httpd-vhosts.conf
  • conf/extra/httpd-info.confを編集。
    • バーチャルホスト設定。
      Everything is expanded.Everything is shortened.
        1
        2
        3
        4
        5
        6
        7
      
      -
      |
      |
      !
       
       
       
      
      # http://ss.hoge.com/server-statusでアクセスが可能になる
      # こうすることで、バーチャルホストが増えてもserver-statusに確実にアクセスできる
      # 例ではドキュメントルートを[/opt/www]としている
      <VirtualHost *:80>
          ServerName ss.hoge.com
          DocumentRoot "/opt/www"
      </VirtualHost>
  • Apache再起動。

検証時の環境

参考