레이블이 apr인 게시물을 표시합니다. 모든 게시물 표시
레이블이 apr인 게시물을 표시합니다. 모든 게시물 표시

2013년 7월 9일 화요일

apache to tomcat: mod_jk vs apr (mod_proxy)

apache 와 tomcat 을 연동하는데 사용되는 방법별 차이..

출처: http://stackoverflow.com/questions/1081918/apache-to-tomcat-mod-jk-vs-mod-proxy

mod_proxy
* Pros:
      o No need for a separate module compilation and maintenance. mod_proxy,
        mod_proxy_http, mod_proxy_ajp and mod_proxy_balancer comes as part of 
        standard Apache 2.2+ distribution
      o Ability to use http https or AJP protocols, even within the same 
        balancer.
* Cons:
      o mod_proxy_ajp does not support large 8K+ packet sizes.
      o Basic load balancer
      o Does not support Domain model clustering
mod_jk
* Pros:
      o Advanced load balancer
      o Advanced node failure detection
      o Support for large AJP packet sizes
* Cons:
      o Need to build and maintain a separate module

2013년 6월 18일 화요일

Apache 2.4.x 버전 설치하기..

Apache 2.4.x 버전 설치

apache2.4.x 버전부터는 apr과 apr-util을 별로도 설치하여야 함.
이전 버전에는 설치파일에 포함, 2.4.x 버전부터 별도 설치


# Build and install apr 1.2
 cd srclib/apr
 ./configure --prefix=/usr/local/apr-httpd/
 make
 make install

 # Build and install apr-util 1.2
 cd ../apr-util
 ./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
 make
 make install

 # Configure httpd
 cd ../../
 ./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/

또는...
 ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --enable-module=so --enable-mods-shared-all --enable-so --enable-rewrite --enable-all

pcre 필요한 경우
 ./configure --prefix=/usr/local/apache2 --with-pcre=/usr/local/pcre/ --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --enable-module=so --enable-mods-shared-all --enable-so --enable-rewrite --enable-all



* PCRE 설치 절차 (http://pcre.org 참고)
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz
tar xvfz pcre-8.33.tar.gz
cd pcre-8.33
./configure --prefix=/usr/local/pcre --enable-static=yes --enable-utf8=yes --enable-unicode-properties=yes
make
make install




출처: http://stackoverflow.com/questions/13813856/compile-apache-2-4-3-on-centos-6-2-64bit