<%-- JSP全站自动生成HTML下载新闻系统 V3.1 作者:JSP天空网站长 曹进 QQ:173241393 --%> Resin虚拟主机设置篇之IIS下多个独立JVM的设置(英文)
 
用户名:
密码:
终身会员
  首页 网络文摘 技术专题 下载中心 JSP培训 公司产品 JSP虚拟主机 技术论坛 会员 JSP免费空间  
  技术文摘: JSP基础 | JSP高级 | JSP环境 | JAVA基础 | JAVA高级 | JAVA工具 | JAVA数据库 | WEB框架 | XML相关 | JAVA考试 | J2EE相关 | J2ME相关 |
  视频下载: 程序设计数据库相关教程计算机基础教程图形图像网络技术网络安全时空书库EasyShop虚拟主机JSP培训技术论坛
  书籍教程: JSP教程Java教程图像软件XML教程数据库教程网页教程工具软件服务器相关ASP教程PHP教程CGI教程.NET教程
  代码下载: ASP代码下载JSP代码下载PHP代码下载CGI代码下载Flash代码C/C++/VCPowerBuilderDelphiVisualBasicVisualFoxpro
您的位置: 首页 -> 文章分类 -> JAVA工具 -> Resin虚拟主机设置篇之IIS下多个独立JVM的设置(英文)
 文摘搜索
 
 文摘资源分类
 
 文摘总排行榜TOP10
 
 最新更新文摘TOP10
 

Resin虚拟主机设置篇之IIS下多个独立JVM的设置(英文)

[来源]www.jspsky.com管理员   [作者]网络文摘   [时间]2005-4-8
推荐等级: 点击:
The ever elusive Resin Virtual Hosting - Multiple JVMs under IIS

(or... here?s how I got it running...)

I?ve done this under Windows 2000, IIS 5.0, Resin 2.0.5

Under Inetpub I created a VirtualScripts directory (seemed to be the right place) and within that directories for all my Virtual Hosts. In each of those I placed the isapi_srun.dll and a resin.ini file.

Inetpub
VirtualScripts
Resin1
isapi_srun.dll
resin.ini
Resin2
isapi_srun.dll
resin.ini
Resin3
isapi_srun.dll
resin.ini

The resin.ini in Resin1 has one line:

CauchoConfigFile d:/resin/conf/resin1.conf


(all the others are similar ... and point to the appropriate .conf file)

Create your virtual servers in IIS like normal. Then create a Virtual Directory called scripts in each and have it point to the matching directory you created above. Make sure you create it with Execute (such as ISAPI applications or CGI) checked. (the third checkbox... normally unchecked.

Go to the properties for the Virtual Host and set up the isapi_srun.dll as in the screen capture below.





screen.width-333)this.width=screen.width-333;">

My Resin directory d:Resin is a standard Resin install... in the d:Resinconf I placed a Resin1.conf, Resin2.conf and Resin3.conf (pointed to by the above resin.ini files) I also used the resin:include directive to allow standard attributes to be shared among all the servers. You can decide which you want to share.

Here?s my Resin1.conf

<caucho.com>

<http-server>

<host id=?resin1.rockhopper.com?>
<app-dir>d:websites esin1</app-dir>
</host>

<http port=?8081?/>
<srun port=?6801?/>

<resin:include href=?resin-http-server.conf?/>

</http-server>

<resin:include href=?resin-param.conf?/>

</caucho.com>



And now, my Resin2.conf

<caucho.com>

<http-server>

<host id=?resin2.rockhopper.com?>
<app-dir>d:websites esin2</app-dir>
</host>

<http port=?8021?/>
<srun port=?6821?/>

<resin:include href=?resin-http-server.conf?/>

</http-server>

<resin:include href=?resin-param.conf?/>

</caucho.com>




Take note of the port changes for http port and srun port. You can use whatever you like here.. just so each file has it?s own set.

In the resin-http-server.conf, I put all my <http-server></http-server> configuration, and in the resin-param.conf, all configuration that fell outside the <http-server> tags. You may wish to include entire configuration in one resin1.conf file... but I?d like to save modifying multiple files later on for consistant parameters. (I?m just lazy that way)

If you are running as services, you?ll need to use the following (or similar command) for each virtual server.

httpd -conf d: esinconf esin1.conf install-as Resin1

The install-as will give you a unique name for each Resin service.

(Remember to go in and start each service)

Now kick IIS (preferrably out the door) and you should have Virtual Servers each with it?s own JVM.


Please send all corrections, gripes and comments to me at barrie-nospam@rockhopper.com (spammers need not apply, everyone else remove the -nospam before mailing)
 
[收藏][打印][关闭]
在线咨询服务 在线咨询服务 在线咨询服务 在线咨询服务
Copyright©2005-2006陕西思远数码科技有限责任公司 服务电话:029-88212987 传真:029-88278265 售后服务QQ:173241393
地址:陕西省西安市吉祥路186号太白新苑C座2104 陕ICP备05004508号