KK-NETレンタルサーバーサービス ベスト・レンタルサーバ・サービス
レンタルサーバー サイトマップ
最新情報サービス案内サポート回線状況会社案内求人情報お問合わせ著作権について
イメージ画像
テクニカルなFAQ 技術的な質問とその回答を扱っています。
一般的なFAQ テクニカルなFAQ FAQ検索

アクセスログはどうしたらとれますか

アクセスログは www/logs/ 以下のデレクトリに記録されるようになっています。 このデレクトリが空な場合は www/conf/httpd.confでログ採集がコメントアウトされていますのでwww/conf/httpd.confの次の部分を下のように変更して各デレクティブを有効にしてください。

# ErrorLog: The location of the error log file. If this does not start
# with /, ServerRoot is prepended to it.

ErrorLog logs/error_log
#ErrorLog /dev/null

# TransferLog: The location of the transfer log file. If this does not
# start with /, ServerRoot is prepended to it.

TransferLog logs/access_log
#TransferLog /dev/null

# AgentLog: The location of the agent log file.  If this does not start
# with /, ServerRoot is prepended to it.

AgentLog logs/agent_log
#AgentLog /dev/null

# RefererLog: The location of the referer log file.  If this does not
# start with /, ServerRoot is prepended to it.

RefererLog logs/referer_log
#RefererLog /dev/null

一般的には TransferLogのみを有効にすることで充分と考えられますが、エラーの記録を取りたい場合は ErrorLogを有効にすると良いでしょう。

ログを採集するようにすると定期的にログを削除しないといずれディスク容量がリミットに達しますので充分監視するようにしてください。

なお、FTPでこのファイルを転送する場合は必ずアスキーモード(テキストモード)で転送してください。 編集する前に、いつでも元に戻せるようにバックアップを取っておくことをお勧めします。


[ 戻る]
ページの先頭へ
[ サービス案内 : レンタルサーバーVPSプラン比較サーバーハウジングドメイン取得リセラーディスカウント]
[ ユーザーサポート : FAQmini/Lite/150パーソナル10バーチャルサーバー機能拡張CGIライブラリ]
[ ホーム] [ 最新情報] [ 回線情報] [ 会社案内] [ 求人情報] [ お問合わせ] [ 著作権について]
Copyright © 1997-2023 KK-NET. All rights reserved.
All brand names and product names used on these web pages are trademarks, or trade names of their respective holders.
Rental server hosting services provided by sales@kk-net.net
KK-NET レンタルサーバーサービス