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

2016-02-19 15:36 3 1 收藏

岁数大了,QQ也不闪了,微信也不响了,电话也不来了,但是图老师依旧坚持为大家推荐最精彩的内容,下面为大家精心准备的Resin虚拟主机设置篇之IIS下多个独立JVM的设置,希望大家看完后能赶快学习起来。

【 tulaoshi.com - 编程语言 】

  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.

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/bianchengyuyan/)

  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.

  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-dird:websitesresin1/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-dird:websitesresin2/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.

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/bianchengyuyan/)

  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:resinconfresin1.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)

来源:https://www.tulaoshi.com/n/20160219/1610002.html

延伸阅读
标签: Web开发
来自http://www.allabc.com 论坛:http://seecee.dev-c.nl/forumdisplay.php?fid=4 下载模块: http://www.nowhere-land.org/prog ... st_limit-0.4.tar.gz 官方网址: http://www.nowhere-land.org/programs/mod_vhost_limit/ 安装: apxs -c mod_vhost_limit.c -o /path/to/libexec/mod_vhost_limit.so 在 httpd.conf 加入: ...
标签: Java JAVA基础
  作者:王树利 原由:     搞了一段时间的WEB项目(基于JSP+JavaBean技术,服务器为Apache+Tomcat)发现我们的项目文件都放在了TOMCAT_HOME\webapps中,虽说可以通过server.xml配置我们的项目到其他目录,但是当项目多了的时候server.xml将变得及其臃肿,而且混乱不堪;不易管理与维护.     为了避免以...
标签: 服务器
设置IIS网站独立帐号确保服务器安全 被人黑过站的同学,都应该有这样的经历。自己的服务器某个站被人入侵后,其它的网站也相继遭殃,这是啥情况呢?百分之九十是IIS网站帐号权限过大,服务器上的所有网站共用一个IIS帐号所致,接来下新手如何设置IIS网站帐号。 1.开始-我的电脑-管理点击进去 2.找到本地用户和组,然后用户,新...
标签: PHP
使PHP应用程序在指定的虚拟主机上运行 概述 本文描述了如何使让Zend Guard或Zend SafeGuard编码后的应用程在指定的虚拟主机或指定的域名上运行。 介绍 我们要做的仅仅是在生成授权文件时加入一些有关域名的相关信息,在程序中再读到这些信息进行判断来进行。 1.在用Zend Guard或Zend SafeGuard生成授权文件时,选中"Addi...

经验教程

145

收藏

19
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部