server.xml에 AJP 프로토콜 설정하는 부분의 샘플이 빠져 있어서 삽질을 좀 했네.
아래와 같이 server.xml에서 AJP Port를 열어줘야함.
<Server port="8000" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080" minProcessors="5"
maxProcessors="75"
enableLookups="false" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false" URIEncoding="UTF-8"/>
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
minProcessors="50" maxProcessors="150"/>
<Engine name="Standalone" defaultHost="localhost" debug="0">
<!--
<Listener className="org.apache.jk.config.ApacheConfig" modJk="/usr/local/apache2/modules/mod_jk.so" />
-->
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false">
<Context path="" docBase="../confluence" debug="0" reloadable="false">
<!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
<Manager pathname="" />
</Context>
</Host>
</Engine>
Apache에서는 mod_jk 설치한후
LoadModule jk_module modules/mod_jk.so
<IfModule jk_module>
JkWorkersFile /usr/local/apache2/conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
</IfModule>
# First Virtual Host.
#
<VirtualHost 61.109.254.15:80>
DocumentRoot "/usr/local/confluence-2.10.3-std/conf"
ServerName wiki.javastudy.co.kr
JkMount /* confluence
</VirtualHost>
workers.propertis에 다음가 같이 기술
==
worker.list=confluence
worker.confluence.port=8009
worker.confluence.host=61.109.254.15
worker.confluence.type=ajp13
==
'클라우드 컴퓨팅 & NoSQL > Apache Httpd' 카테고리의 다른 글
ESB 성능 테스트에서 Apache 설정 (1) | 2008.12.02 |
---|---|
아파치 캐슁 서버 설치법 (2) | 2007.07.24 |