免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2097 | 回复: 0
打印 上一主题 下一主题

[WebLogic] 使用SunOne webServer 转发请求到 Weblogic (linux) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-19 16:16 |只看该作者 |倒序浏览

SunOne webServer : 6.1 版本
Weblogic : 10.3 版本
一: 复制 weblogic 的nes plugin 的动态链接库文件到 SunOne 的 plugin 下面
[root@localhost i686]# pwd
/root/bea/wlserver_10.3/server/plugin/linux/i686
[root@localhost i686]# ls
largefile  libproxy128_61.so  libproxy_61.so
[root@localhost i686]#
二: 修改你的weblogic 服务器配置文件,主要是obj.conf 和 magnus.conf
   1: obj.conf
  
Object name="weblogic" ppath="*/*">
Service fn=wl_proxy WebLogicHost=172.17.2.116 WebLogicPort=7001
/Object>
Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn=pfx2dir from=/mc-icons dir="/opt/SUNWwbsvr/ns-icons" name="es-internal"
NameTrans fn=document-root root="$docroot"
PathCheck fn=unix-uri-clean
PathCheck fn="check-acl" acl="default"
PathCheck fn=find-pathinfo
PathCheck fn=find-index index-names="index.html,home.html,index.jsp"
ObjectType fn=type-by-extension
ObjectType fn=force-type type=text/plain
Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
Service method=(GET|HEAD|POST) type=*~magnus-internal/* fn=send-file
Service method=TRACE fn=service-trace
Error fn="error-j2ee"
AddLog fn=flex-log name="access"
/Object>
Object name="j2ee">
Service fn="service-j2ee" method="*"
/Object>
Object name="cgi">
ObjectType fn=force-type type=magnus-internal/cgi
Service fn=send-cgi user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
/Object>
Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
/Object>
Object name="send-compressed">
PathCheck fn="find-compressed"
/Object>
Object name="compress-on-demand">
Output fn="insert-filter" filter="http-compression"
/Object>
2: magnus.conf
#
# The NetsiteRoot, ServerName, and ServerID directives are DEPRECATED.
# They will not be supported in future releases of the Web Server.
NetsiteRoot /opt/SUNWwbsvr
ServerName localhost.localdomain
ServerID https-localhost.localdomain
#
RqThrottle 128
DNS off
Security off
PidLog /opt/SUNWwbsvr/https-localhost.localdomain/logs/pid
User root
StackSize 131072
TempDir /tmp/https-localhost.localdomain-9d93b4d6
Init fn="load-modules" shlib="/opt/SUNWwbsvr/bin/https/lib/libdavplugin.so" funcs="init-dav,ntrans-dav,pcheck-dav,service-dav" shlib
_flags="(global|now)"
Init fn=flex-init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%
\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
Init fn="load-modules" shlib="/opt/SUNWwbsvr/bin/https/lib/libj2eeplugin.so" shlib_flags="(global|now)"
Init fn="init-dav" LateInit="yes"
Init fn="load-modules" funcs="wl_proxy,wl_init"\
shlib=/opt/SUNWwbsvr/plugins/libproxy_61.so
Init fn="wl_init"
配置文件的具体含义,参照 http://e-docs.bea.com/wls/docs81/plugins/nsapi.html#110496


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/14644/showart_2032017.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP