2chの動作報告はここで。 パート25at OPERATE
2chの動作報告はここで。 パート25 - 暇つぶし2ch696:動け動けウゴウゴ2ちゃんねる
10/03/25 13:31:36 gGTsQKT30
73 :root▲▲ ★[] 投稿日:2009-10-04 00:36:02
入れた内容:

1) mod_cache と mod_disk_cache を有効化。

LoadModule cache_module libexec/apache22/mod_cache.so
LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so

以上2行コメント外す(モジュールは作ってあった) in httpd.conf

2) 以下の2ch-cache.conf を設定ファイルのディレクトリに追加。

<IfModule cache_module>

#LoadModule disk_cache_module modules/mod_disk_cache.so
# If you want to use mod_disk_cache instead of mod_mem_cache,
# uncomment the line above and comment out the LoadModule line below.
<IfModule disk_cache_module>
CacheRoot /md/cache
CacheEnable disk /
CacheDisable /test/
#CacheIgnoreCacheControl On
#CacheIgnoreNoLastMod On
#CacheStoreNoStore On
#CacheDirLevels 5
#CacheDirLength 3
#CacheMaxFileSize 1000000
</IfModule>

</IfModule>

3) /md/cache をセットアップ。以下をシステム起動時の mdsetupfor2ch スクリプトに追加。

mkdir /md/cache
chmod 1777 /md/cache

/usr/local/sbin/htcacheclean -d10 -i -p/md/cache -l128m

4) 3) を手で実行。
5) httpd を再起動。


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch