티스토리 뷰
참조 :
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 |
10th. 부천국제판타스틱영화제 2006 (0) | 2006.07.13 |
태터툴즈 한글 문제 (0) | 2006.07.06 |
google earth v4. (0) | 2006.06.14 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 짜증
- oracle
- 안드로이드 앱
- 액땜
- 정부과천청사
- 윈도우
- VMware
- 무료 프로그램
- GB-P100
- Eclipse
- EditPlus
- 오라클
- iBATIS
- ubuntu
- connect by
- Java
- Git
- 출근길
- 충동구매
- 금연
- 김용
- 일하는 곳
- 최대 메모리
- 낭패
- 프로젝트
- 파워콤해지
- 법무부
- 헌혈
- 바이크
- 출근
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함