关闭

apache2 linux下tomcat weblogic配置

标签: weblogictomcatapachelinuxmodulesession
1742人阅读 评论(0) 收藏 举报
分类:

编辑httpd.conf文件;加如下代码:


   

LoadModule    weblogic_module  modules/mod_wl.so

 

    LoadModule    jk_module  modules/mod_jk.so
    JkWorkersFile conf/workers.properties
    JkLogFile     logs/mod_jk.log
    JkLogLevel    info
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
    JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories


<VirtualHost *:80>
    ServerAdmin victor@source-ware.com
    DocumentRoot /usr/local/apache2/htdocs
    ServerName 61.175.132.188
    ErrorLog logs/61.175.132.188-error.log
    CustomLog logs/61.175.132.188-access.log common
    JkMount /*  route
</VirtualHost>

 


<VirtualHost *:80>
    ServerAdmin victor@source-ware.com
    DocumentRoot /usr/local/apache2/htdocs
    ServerName 192.168.23.99
    ErrorLog logs/192.168.23.99-error.log
    CustomLog logs/192.168.23.99-access.log common
    <IfModule mod_weblogic.c>
        WebLogicHost 127.0.0.1
        WebLogicPort 51890
        MatchExpression *
    </IfModule>
</VirtualHost>

 

 

tomcat的还要编辑workers.properties文件如下:

worker.worker125.host=192.168.23.1
worker.worker125.port=8009
worker.worker125.type=ajp13
worker.worker125.cachesize=10
worker.worker125.cache_timeout=600
worker.worker125.socket_keepalive=2
worker.worker125.socket_timeout=300

worker.worker100.host=192.168.23.100
worker.worker100.port=8009
worker.worker100.type=ajp13
worker.worker100.cachesize=10
worker.worker100.cache_timeout=600
worker.worker100.socket_keepalive=2
worker.worker100.socket_timeout=300

worker.worker99.host=192.168.23.99
worker.worker99.port=8009
worker.worker99.type=ajp13
worker.worker99.cachesize=10
worker.worker99.cache_timeout=600
worker.worker99.socket_keepalive=2
worker.worker99.socket_timeout=300

worker.route.type=lb
worker.route.sticky_session=1
worker.route.balance_workers=worker100,worker99

worker.list=route,worker125

 

tomcat 5.028 apache2.0.48 weblogic8.1下配置成功。

msn:woowind@sina.com

qq:1265877

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:361836次
    • 积分:4578
    • 等级:
    • 排名:第6669名
    • 原创:102篇
    • 转载:10篇
    • 译文:0篇
    • 评论:101条
    最新评论
    Template Engine