[scrap]compile mod_proxy to existing apache (cpanel can do)

Programming/Apache 2009.06.04 17:20
d to-your-source-of-apache-build/src/modules/proxy

Bagi Cpanel servers:

cd /home/cpapachebuild/buildapache/apache_1.3.31/src/modules/proxy/

run command:

/usr/local/apache/bin/apxs -i -c *.c

mod_proxy has been created and placed straight
into the libexec directory.

add the following module directives to the httpd.conf:

LoadModule proxy_module libexec/mod_proxy.so
AddModule mod_proxy.c

Contoh penggunaannya dalam httpd.conf:

Proxypass / http://localhost:567/
ServerName your-server-name
ProxypassReverse / http://localhost:567/
ErrorLog /var/log/httpd/apps_error_log
CustomLog /var/log/httpd/apps_log combined

출처 : http://nustaffsite.gunadarma.ac.id/blog/akbar/2006/09/02/compile-mod_proxy-to-existing-apache-cpanel-can-do/

'Programming > Apache' 카테고리의 다른 글

Apache-Tomcat proxy ajp  (0) 2012.02.08
[scrap]compile mod_proxy to existing apache (cpanel can do)  (0) 2009.06.04
Apache Tomcat Context 설정  (0) 2007.12.21
Apache2와 Tomcat5 연동하기  (0) 2007.11.26