Apache HTTP Server Plug-In 설정방법
Apache HTTP 서버에 Plug-in 을 설치한 후에는 해당 플러그인을 사용할 수 있도록 구성을 해주어야 합니다.After installing the plug-in in the Apache HTTP Server, configure the WebLogic Server Apache Plug-In and configure the server to use the plug-in. This section explains how to edit the Apache httpd.conf file to instruct the Apache server to load the WebLogic Server library for the plug-in as an Apache module, and to specify the application requests that should be handled by the module.
Editing the httpd.conf File
Edit the httpd.conf file in your Apache HTTP server installation to configure the Apache HTTP Server Plug-In.
This section explains how to locate and edit the httpd.conf file, to configure the server to use the WebLogic Server Apache Plug-In, to proxy requests by path or by MIME type, to enable HTTP tunneling, and to use other WebLogic Server plug-in parameters.
httpd.conf파일 열기파일 위치 => APACHE_
HOME\conf\httpd.conf
(where APACHE_HOMEis the root directory of your Apache HTTP server installation). See a samplehttpd.conffile at Setting Up Perimeter Authentication.- Ensure that the WebLogic Server modules are included for Apache 2.0.x, manually add the following line to the
httpd.conffile:LoadModule weblogic_module modules\mod_wl_20.so
- Add an
IfModuleblock that defines one of the following:For a non-clustered WebLogic Server:
The WebLogicHost and WebLogicPort parameters.
For a cluster of WebLogic Servers:
The WebLogicCluster parameter.
<IfModule mod_weblogic.c>
WebLogicHost myweblogic.server.com
WebLogicPort 7001
</IfModule> - To proxy requests by MIME type, add a
MatchExpressionline to theIfModuleblock. Note that if both MIME type and proxying by path are enabled, proxying by path takes precedence over proxying by MIME type.For example, the following
IfModuleblock for a non-clustered WebLogic Server specifies that all files with MIME type.jspare proxied:<IfModule mod_weblogic.c>
WebLogicHost myweblogic.server.com
WebLogicPort 7001
MatchExpression *.jsp
</IfModule>You can also use multiple
MatchExpressions, for example:<IfModule mod_weblogic.c>WebLogicHost myweblogic.server.com
WebLogicPort 7001MatchExpression *.jsp
MatchExpression *.xyz
</IfModule>If you are proxying requests by MIME type to a cluster of WebLogic Servers, use the
WebLogicClusterparameter instead of theWebLogicHostandWebLogicPortparameters. For example:<IfModule mod_weblogic.c>WebLogicCluster w1s1.com:7001,w1s2.com:7001,w1s3.com:7001MatchExpression *.jsp
MatchExpression *.xyz
</IfModule> - To proxy requests by path, use the
Locationblock and theSetHandlerstatement.SetHandlerspecifies the handler for the Apache HTTP Server Plug-In module. For example the following Location block proxies all requests containing/weblogicin the URL:<Location /weblogic>
SetHandler weblogic-handler
PathTrim /weblogic
</Location>The PathTrim parameter specifies a string trimmed from the beginning of the URL before the request is passed to the WebLogic Server instance (see General Parameters for Web Server Plug-Ins).
- Optionally, enable HTTP tunneling for t3 or IIOP.
- To enable HTTP tunneling if you are using the t3 protocol and
weblogic.jar, add the following Location block to thehttpd.conffile:<Location /HTTPClnt>
SetHandler weblogic-handler
</Location> - To enable HTTP tunneling if you are using the IIOP, the only protocol used by the WebLogic Server thin client,
wlclient.jar, add the following Location block to thehttpd.conffile:<Location /iiop>
SetHandler weblogic-handler
</Location>
- To enable HTTP tunneling if you are using the t3 protocol and
- Define any additional parameters for the Apache HTTP Server Plug-In.
The Apache HTTP Server Plug-In recognizes the parameters listed in General Parameters for Web Server Plug-Ins . To modify the behavior of your Apache HTTP Server Plug-In, define these parameters either:
[httpd.conf Sample]
LoadModule weblogic_module modules/mod_wl_20.so
<IfModule mod_weblogic.c>
WebLogicHost myweblogic.server.com
WebLogicPort 7001
DebugConfigInfo ON
CookieName JSESSIONID
KeepAliveEnabled ON
KeepAliveSecs 20
DynamicServerList OFF
Idempotent OFF
MatchExpression *.jsp
WLExcludePathOrMimeType "*.gif, *.css, *.js"
#Debug Option 설정
Debug ALL
WLLogFile D:\Temp\wlproxy.log
#SSL 연동 설정
SecureProxy ON
EnforceBasicConstraints off
TrustedCAFile D:\temp\test.pem
RequireSSLHostMatch false
</IfModule>
<Location /weblogic>
SetHandler weblogic-handler
PathTrim /weblogic
</Location>
or
LoadModule weblogic_module modules/mod_wl_20.so
<IfModule mod_weblogic.c>
WebLogicCluster agarwalp02: 8005, agarwalp02: 8006
Debug ON
WLLogFile c: /tmp/global_proxy.log
WLTempDir "c: /myTemp"
DebugConfigInfo On
KeepAliveEnabled ON
KeepAliveSecs 15
</IfModule>
http://webServer/index.jsp?__WebLogicBridgeConfig
[Virtual Host 설정]
LoadModule weblogic_module modules/mod_wl_22.so
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot C:\Apache\htdocs
ServerName fis.domain.com:80
<IfModule mod_weblogic.c>
WebLogicHost xxx.xxx.xxx.xx
WebLogicPort 7003
MatchExpression *
</IfModule>
</VirtualHost>
<VirtualHost *:80>
ServerName account.domain.com:80
<IfModule mod_weblogic.c>
WebLogicHost xxx.xxx.xxx.xx
WebLogicPort 7005
MatchExpression *
</IfModule>
</VirtualHost>
<VirtualHost *:80>
ServerName pda.domain.com:80
<IfModule mod_weblogic.c>
WebLogicHost xxx.xxx.xxx.xx
WebLogicPort 7007
MatchExpression *
</IfModule>
</VirtualHost>
▶ WLS Plug-in 로그분석