编辑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