본문 바로가기

TOMCAT/톰캣 아파치 연동3

아파치 설치시 ssl 설치 (https 접속) ssl 설치 http://www.openssl.org //32BIT 일때 ./config --prefix=/usr/local/ssl make make install //./config --prefix=/usr/local/ssl -fPIC 이렇게 실행 해야 할 때도 있음 //우분투에선 -fPIC 옵션 안먹는데..(32bit ㅜ.ㅜ) apache 설치 http://httpd.apache.org/ ./configure --prefix=/usr/local/apache2.4 \ --enable-mods-shared=most \ --enable-module=so \ --enable-so \ --enable-rewrite \ --enable-mods-shared=ssl \ --with-ssl=/usr/local/ss.. 2012. 6. 4.
아파치 톰캣 연동 (리눅스) 일단 process가 어떻게 돌아가는지 부터 알도록 하죠 아파치 -> mod_jk -> 톰캣 연동 과정을 아는 분들은 이것만 보고도 아실 것이고 모르는 분들은 설명을 들어주세요 아파치는 기본적으로 html 이나 그림 파일 같은 것을 읽습니다. tomcat 은 그 외에도 jsp 파일을 컴파일 해서 읽을 수 있죠. 그래서 부하를 줄이기 위해 html 파일들은 아파치에서 jsp 파일은 톰캣에서 읽도록 분산을 시켜놓는데요... 원리는 간단합니다. 아파치와 톰캣이 각각 다른 Port 를 쓰게 하고 아파치 port 로 들어온 jsp 파일 요청 내용을 톰캣 port 로 링크를 걸어주는 것입니다. 그렇게 연결 해주는게 mod_jk 라는 것이구요. (결국 모든 요청은 아파치 포트로 통일 된다는 것이군요 - 아파치 기본 .. 2010. 3. 11.
톰캣 아파치 연동 다른 블로그를 돌아다니다 너무 잘 나와 있어서 포스팅 해 봅니다. 1.환경 rh 9.x apache_1.3.34 tomcat 5.0.28 connector(mod_jk) - 1.2.15 jakarta-tomcat-connectors-1.2.15-src.tar.gz jdk 1.4.x 2. apache 설치 - 압축해제 tar xvzf apache_1.3.34.tar.gz - 설치 ./configure --prefix=/usr/local/apache --enable-shared=proxy --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/local/apache/lib --logfiledir=/var/log/httpd --sysconfdir=/etc/httpd.. 2009. 11. 10.