Resin虚拟主机设置篇之IIS下多个独立JVM的设置(英文) (1)
[ 来源:互网络 | 更新日期:2007-09-13 10:10:10 | 浏览次数:9511]
(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=http://www.jspsky.net.cn/article_html/?resin-http-server.conf?/>
</http-server>
<resin:include href=http://www.jspsky.net.cn/article_html/?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=http://www.jspsky.net.cn/article_html/?resin-http-server.conf?/>
</http-server>
<resin:include href=http://www.jspsky.net.cn/article_html/?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


您的位置:
