Tuesday, April 5, 2011

[On Ubuntu Mod_proxy added to apache2] BalancerMember Can't find 'byrequests' lb method

Mod_proxy added to apache2.

apt-get install libapache2-mod-proxy-html

apt-get install libxml2-dev

Add following lines to /etc/apache2/apache2.conf :


LoadModule  proxy_module         /usr/lib/apache2/modules/mod_proxy.so
LoadModule  proxy_http_module    /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule  headers_module       /usr/lib/apache2/modules/mod_headers.so
LoadModule  deflate_module       /usr/lib/apache2/modules/mod_deflate.so
LoadFile    /usr/lib/libxml2.so

/etc/init.d/apache2 restart