본문 바로가기

WEB & WAS/WebSphere

[WebSphere] IHS 와 WebSphere Liberty 연동

반응형

개요

IHS(IBM HTTP Server) 9.0은 Apache HTTP Server 2.4.12를 기반으로 만들어진 서버입니다. 아파치와 톰캣 연동시 mod_jk를 이용하여 연동하는 것처럼 IHS는 Web Server Plug-ins for WebSphere Application Server 패키지에 포함된 모듈(mod_was_ap2X_http.so)을 이용하여  웹서버와 WAS 간에 연동을 지원합니다.

IHS는 Apache를 기반으로 만들어진 웹서버이어서  Apache와의 연동 또한 지원합니다.

테스트 환경

IBM HTTP Server 9.0

WebSphere Application Server Liberty 19.0.0.9

CentOS 7.6

참조

IHS, WebSphere Application Server Liberty 설치는 아래를 참조합니다.

IHS(IBM HTTP Server) 설치

WebSphere Application Server Libery 설치

 

1. httpd.conf

IHS 의 httpd.conf 파일에 LoadModule, WebSpherePluginConfig 지시자에 아래와 같이 기술합니다.

LoadModule was_ap24_module "/opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap24_http.so" 
WebSpherePluginConfig "/opt/IBM/WebSphere/Plugins/config/WEB1/plugin-cfg.xml"

** mod_was_ap24_http.so 모듈은 apache 2.4 기반 모듈, mod_was_ap22_http.so는 apaache 2.2를 기반 모듈

** 모듈(mod_was_ap2X_http.so)은 Web Server Plug-ins for IBM WebSphere Application Server 패키지에 포함되어 있습니다.

 

2. plugin-cfg.xml 

plugin-cfg.xml 파일은 WebSphere Application Server Liberty 설치 디렉토리 아래에 위치 합니다.

예) wlp/usr/servers/<myserver>/logs/state/ 디렉토리

plugin-cfg.xml 파일을 httpd.conf의 WebSpherePluginConfig 지시자에 설정한 경로로 복사해서 사용하면 됩니다.

plugin-cfg.xml 파일은 서버가 시작하면 server.xml 파일을 읽어서 plugin-cfg.xml을 파일을 생성하므로 server.xml 파일을 변경했을경우에는 서버를 재시작하여 plugin-cfg.xml 파일을 갱신해 줘야 합니다.

반응형