Chinaunix首页 | 论坛 | 博客
  • 博客访问: 341574
  • 博文数量: 89
  • 博客积分: 5152
  • 博客等级: 大校
  • 技术积分: 1155
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-25 15:12
文章分类

全部博文(89)

文章存档

2012年(1)

2011年(5)

2010年(14)

2009年(69)

我的朋友

分类: LINUX

2009-08-19 16:16:34


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"



配置文件的具体含义,参照
阅读(1205) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~