apache2.4.1 / Jboss6 연동

  1. /etc/apache/conf/httpd.conf 수정

ServerName xxx.xxxx.xxx.x:80 와 같이 서버네임 변경.

<Directory "/var/www/cgi-bin">

    AllowOverride None

    Options None

Require all granted

</Directory>

와 같이 Require all granted 로 문법이 변경됬으니 체크.

  1. httpd-modjk.conf 파일

<IfModule !mod_jk.c>

        LoadModule jk_module modules/mod_jk.so

</IfModule>

<IfModule mod_jk.c>

        JkWorkersFile /etc/apache/conf.d/workers.properties

        JkLogFile "|/etc/apache/bin/rotatelogs /ap_log/modjk-log/mod-jk.log.%Y%m%d 86400"

        JkLogLevel debug

        JkLogStampFormat "[%Y %a %b %d %H:%M:%S]"

        JKRequestLogFormat "%w %R %V %T"

        JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories

#        JkShmFile /var/log/httpd/mod-jk.shm

         JkShmFile logs/modjk-log/mod-jk.shm

</IfModule>

자신의 환경에 맞게 셋팅.

  1. workers.properties 파일 수정 (httpd-modjk.conf 파일에서 지정한 파일)

worker.list=svr1

worker.template.type=ajp13

worker.template.host=jboss가 실행중인 ip

worker.template.socket_timeout=30

worker.template.lbfactor=1

worker.template.recovery_options=1

#worker.template.max_packet_size=20000

##ssvr1

worker.svr1.reference=worker.template

worker.svr1.port=8080

여기까지 아파치 설정화일은 수정하고 Jboss에서 포트를 8080으로 정해주면 된다.

답글 남기기