Apache与Weblogic整合(非原创)

Apache与Weblogic整合(非原创)

1、将mod_wl_20.so或mod_wl.so拷贝到apache的modules目录中(mod_wl_20.so为weblogic的转发模块)

2、在apache的http.conf文件中加入LoadModule weblogic_module modules/mod_wl.so。(windows下要吧

“/”改为“\”;Windows下要把modules改为libexec。如果无法跳转到目录,把主页index.htm改为

index.html。)

3、把这段加入到http.conf中
<IfModule mod_weblogic.c>
WebLogicHost 192.168.0.42  #这里要改
WebLogicPort 7001
MatchExpression *.jsp   #把jsp页面转给weblogic处理
#MatchExpression *.html
MatchExpression *.cert
MatchExpression *.jpg
MatchExpression *.gif
#MatchExpression *.asp
MatchExpression *.css
#MatchExpression *.swf
MatchExpression DownloadServlet
MatchExpression rhstockgraphices
</IfModule>
<Location /DownloadServlet>
SetHandler weblogic-handler
</Location>

<Location /rhstockgraphices>
SetHandler weblogic-handler
</Location>

4、把http.conf中Apache指向的默认目录改为weblogic中的目录,及DefaultWebAppcation目录。

猜你喜欢

转载自jcair.iteye.com/blog/1721759