참조 :
http://www.howtoforge.com/apache2_tomcat5_mod_jk_integration
http://www.howtoforge.com/apache2_tomcat5_mod_jk
다음 두 파일을 이용한다.
/etc/apache2/workers.propertieshttp://www.howtoforge.com/apache2_tomcat5_mod_jk_integration
http://www.howtoforge.com/apache2_tomcat5_mod_jk
다음 두 파일을 이용한다.
/etc/apache2/apache2.conf
1. 준비
apache2, tomcat5, jdk1.5, mod_jk 를 설치한다. (패키지 관리자를 이용하여 설치)
2. /etc/apache2/workers.properties 생성
물론 8080 포트를 사용하기 위해 /etc/apache2/ports.conf 파일에 8080 리스너를 추가해야 한다.
[code]
workers.tomcat_home=/usr/share/tomcat5
workers.java_home=/usr/local/lib/java-1.5
ps=/
worker.list=worker1
worker.default.port=8009
worker.default.host=localhost:8080
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1
[/code]
3. /etc/apache2/apache2.conf 수정
[code]
... 중략 ...
# index.jsp 추가.
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.jsp
... 중략 ...
#(파일 끝에 추가하면 됨)
# for mod_jk
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile /etc/apache2/workers.properties
# Where to put jk logs
JkLogFile /var/log/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
# Send servlet for context / jsp-examples to worker named worker1
#JkMount /jsp-examples worker1
# Send JSPs for context /jsp-examples/* to worker named worker1
#JkMount /jsp-examples/* worker1
# Send JSPs for context /test/*
JKMount /test/*.jsp worker1
[/code]
'정보' 카테고리의 다른 글
| phpBB 설치하기. (0) | 2006/09/01 |
|---|---|
| ubuntu 6.06에 vmware 설치하기. (0) | 2006/08/02 |
| ubuntu에서 mod_jk를 이용한 apache2와 tomcat5연동 (0) | 2006/07/26 |
| editplus 칸단위 편집 (0) | 2006/07/24 |
| 10th. 부천국제판타스틱영화제 2006 (0) | 2006/07/13 |
| 태터툴즈 한글 문제 (0) | 2006/07/06 |
댓글을 달아 주세요