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.
tags: zlashdot Apache Apache ReverseProxy
Posted by NI-Lab. (@nilab)