« [Java]BufferedImage のピクセルデータがどんな値に設定されているか調べる | メイン | Debian Popularity Contest (パッケージ人気コンテスト) »

2006年04月25日

Apache + mod_proxy + mod_cache + mod_disk_cache によるリバースプロキシの導入

Apache 2.0.54 によるリバースプロキシ導入の場合。


$ tar zxvf ./httpd-2.0.54.tar.gz
$ cd httpd-2.0.54
$ ./configure --enable-proxy --enable-cache --enable-disk-cache
$ make
$ make install

以下は、httpd.conf の一部。


Listen 80
Listen 8888
 
ProxyRequests Off
 
<Proxy *>
  Order deny,allow
  Allow from all
</Proxy>
 
ProxyPass / http://hogeserver:8000/
ProxyPassReverse / http://hogeserver:8000/
 
CacheEnable disk /
 
CacheDirLength 3
CacheDirLevels 4
CacheMaxFileSize 10000000
CacheMinFileSize 32
CacheRoot /usr/local/reverse_proxy/cacheroot
 
CacheIgnoreCacheControl On
CacheMaxExpire 86400

Ref.

投稿者 NI-Lab. Twitter: @nilab : 2006年04月25日 21:11

Please post your comments -> Ido-Batarian BBS
コメントはこちらの Ido-Batarian BBS へどうぞ。

« [Java]BufferedImage のピクセルデータがどんな値に設定されているか調べる | メイン | Debian Popularity Contest (パッケージ人気コンテスト) »

人気ブログランキング - NI-Lab.'s ヅラッシュドット [Valid RSS]