tomcat-connectors-1.2.37-src.tar.gz    다운

 

tomcat-connectors-1.2.37-src\native\

# 실행

./buildconf.sh

 

./configure --with-apxs=/usr/local/apache2/bin/apxs

 

make

make install

apache2/modules/jk_mod.so 생성

 

/usr/local/apache2/conf/httpd.conf

 

맨밑에추가

LoadModule jk_module modules/mod_jk.so
<ifModule jk_module>
JkWorkersFile conf/workers.properties
JkShmFile logs/mod_jk.shm
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
</ifModule>

* JkWorkersFile : jk_module 의 설정 파일이 저장되어있는 properties 파일을 불러온다.

* JkShmFile : 모듈의 로그파일이 쌓일 장소를 설정

* JkLogLevel : 로그가 쌓일 레벨을 설정 : info, error, 등등,,,

* JkLogStampFormat : 로그를 쌓을 때 포맷 설정

 

JkMount /ekp ajp13

JkMount /ekp/*

JkMount /*.jsp ajp13


<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

 

workers.properties파일 생성 및 설정 (/usr/local/apache2/conf/ 에 생성)
- vi woerkers.properties

workers.tomcat_home=/usr/local/tomcat
workers.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.ajp13.lbfactor=1
worker.ajp13.connection_pool_timeout=600
worker.ajp13.socket_keepalive=1

 

 

gw.test.kr/ekp

 

 

(필요없음)

httpd-vhost.conf--------------------------------
주석부분생략
#
NameVirtualHost *:80

#
#
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/usr/local/apache2/htdocs"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error_log"
CustomLog "logs/dummy-host.example.com-access_log" common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "/usr/local/apache2/htdocs"
ServerName dummy-host2.example.com
ErrorLog "logs/dummy-host2.example.com-error_log"
CustomLog "logs/dummy-host2.example.com-access_log" common
</VirtualHost>

'강의노트 > GW' 카테고리의 다른 글

4. MySQL  (0) 2014.03.06
2. tomcat8 설치  (0) 2014.03.06
1. Apache2 설치  (0) 2014.03.06