⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install-iis.xtp

📁 RESIN 3.2 最新源码
💻 XTP
📖 第 1 页 / 共 2 页
字号:
<li>Make sure resin.exe works</li><li>Copy isapi_srun.dll to the IIS scripts directory, <var>d:\inetpub\scripts</var>.You may need to run <var>net stop w3svc</var> to get permission to overwrite the file.</li><li>If you have a virtual site (virtual hosts), you must configure IIS to havethe virtual directory <var>/scripts</var> point to <var>d:\inetpub\scripts</var> foreach virtual site.</li><li>(optional) Create a resin.ini in <var>d:\inetpub\scripts</var> pointing to the ResinConfigServer</li><li>(optional) Add a "CauchoStatus yes" line to the resin.ini for debugging</li><li>Configure IIS to load isapi_srun.dll as an ISAPI filter.</li><li>Restart IIS (control panel/services) or <var>net stop w3svc</var> followedby <var>net start w3svc</var>.</li><li>Browse /servlet/Hello and /foo.jsp.You should see a "cannot connect" error.</li><li>Start resin.exe</li><li>Browse /servlet/Hello and /foo.jsp.  You should now see the servlet.</li></ol><p>Copying isapi_srun.dll to <var>inetpub/scripts</var> directory is relativelystraightforward.  If you're upgrading to a new version of Resin, youmay need to stop IIS (control panel/services) to get permission tooverwrite isapi_srun.dll.</p><p>The resin.ini is an optional file in <var>inetpub/scripts</var> tooverride the automatic registry $RESIN_HOME/conf/resin.xml configurationfile.  If you only have one Resin server, you should not create a resin.iniand let isapi_srun.dll use the registry value set by the setup.exe program.</p><p>resin.ini is only needed if you have multiple Resin configurationfiles for different IIS virtual hosts.</p><p>The resin.ini should contain the following line:</p><example>ResinConfigServer localhost 6802</example><p>You can change the host from <var>localhost</var> to a backend server.You can also add multiple <var>ResinConfigServer</var> items to cluster theconfiguration.</p><p>For debugging, you can add a "CauchoStatus yes" line to the resin.ini:</p><example>ResinConfigServer localhost 6802CauchoStatus yes</example><p>For security purposes, the default value of CauchoStatus is "no" whenyou have a resin.ini.</p><p>Adding an ISAPI filter is accomplished in the IIS manager.</p><s2 title="IIS and Resin on different machines"><p>When Resin and IIS are on different machines, you'll changethe ResinConfigServer from "localhost" to the IP address of theResin server.</p><example>ResinConfigServer 192.168.0.10 6802CauchoStatus yes</example></s2></s1><s1 title="Virtual Sites (Virtual Hosts)"><p>If IIS is managing multiple virtual sites (everyone else calls them virtualhosts), then you need to configure IIS to use the isapi_srun.dll filter foreach virtual site.  Configure IIS to have the virtual directory <var>/scripts</var>for each virtual site point to <var>d:\inetpub\scripts</var>, so that each virtual site uses the isapiu_srun.dll.</p><p>Resin is configured to recognize virtual hosts with the <var>id</var> attributeof <a config-tag="host"/>. </p><example title="resin.xml with virtual hosts">&lt;resin xmlns="http://caucho.com/ns/resin"&gt;  ...  &lt;server&gt;    ...    &lt;host id="foo.com"&gt;      ...    &lt;/host&gt;    &lt;host id="bar.com"&gt;      ...    &lt;/host&gt;    &lt;host id="baz.com"&gt;      ...    &lt;/host&gt;  &lt;/server&gt;&lt;/resin&gt;</example><p>Resin recognizes which host to use by examing the url.  With the aboveexample, a url of <code>http://foo.com/some/path</code> will use host<code>id="foo.com"</code> and a url of <code>http://bar.com/some/path</code>will use host <code>id="bar.com"</code>.</p></s1><s1 title="Virtual Sites with different JVM's"><p>If a seperate JVM for each virtual site is desired, a seperate<code>resin.ini</code> is used for each virtual site.  The resin.ini file is placedin the <code>scripts</code> directory.</p><example title="resin-foo.xml"><!-- for foo.com jvm -->&lt;resin xmlns="http://caucho.com/ns/resin"&gt;&lt;cluster id=""&gt;  &lt;server port="6800"/&gt;  ...  &lt;host id="*"&gt;    ...  &lt;/host&gt;  &lt;/cluster&gt;&lt;/resin&gt;</example><example title="resin-bar.xml"><!-- for bar.com jvm -->&lt;resin xmlns="http://caucho.com/ns/resin"&gt;&lt;cluster id=""&gt;  &lt;server port="6801"/&gt;  ...  &lt;host id="*"&gt;    ...  &lt;/host&gt;&lt;/cluster&gt;&lt;/resin&gt;</example><example title="installing a servlet runner for each virtual site">win&gt; resin-3.2.x/resin.exe -install-as "Resin-foo" \    -conf resin-foo.xml -Xrswin&gt; resin-3.2.x/resin.exe -install-as "Resin-bar" \    -conf resin-bar.xml -Xrs</example><example title="resin.ini for IIS virtual site foo.com">ResinConfigServer localhost 6802</example><example title="resin.ini for IIS virtual site bar.com">ResinConfigServer localhost 6803</example><p>The ResinConfigServer tells the isapi_srun.dll the port number to use toconnect to the Resin instance.  You can change the host from <var>localhost</var>to a backend server.  You can also add multiple <var>ResinConfigServer</var> itemsto cluster the configuration.</p><p>resin-foo.xml and resin-bar.xml contain a &lt;host id="*"&gt;, you do notneed to specify the host name because each conf/JVM is only going toreceive requests from a particular virtual site (because of the uniqueresin.ini files).</p></s1><s1 title="Troubleshooting"><ol><li>Check your configuration with the standalone web server.In other words, add a &lt;http port='8080'/&gt; block andbrowse http://localhost:8080.</li><li>Check <var>http://localhost/caucho-status</var>.  That will tell ifthe ISAPI filter/extension is properly installed. </li><li>Each server should be green and the mappings shouldmatch your resin.xml.</li><li>If caucho-status fails entirely, the problem is in the <var>isapi_srun</var>installation.  Try<var>http://localhost/scripts/isapi_srun.dll/caucho-status</var> directly(bypassing the filter).  If this fails, IIS can't find isapi_srun.dll.<ul><li>Check that isapi_srun.dll is in <var>c:\inetpub\scripts.</var></li><li>Make sure that both IIS and the underlying NTFS file system have permissions set appropriately for isapi_srun.dll.</li><li>Make sure that your IIS host has a mapping from <var>/scripts</var>to <var>c:\inetpub\scripts</var> and that the <var>/scripts</var> has executepermissions.</li><li>IIS 6 users may need to take <a href="#iis6">additional steps</a>.</li></ul></li><li>If you've created a newIIS web site, you need to create a virtual directory <var>/scripts</var> pointingto the <var>d:\inetpub\scripts</var> directory.</li><li>If caucho-status shows the wrong mappings, there's something wrongwith the resin.xml.</li><li>If caucho-status shows a red servlet runner, then resin.exe hasn'tproperly started.</li><li>If you get a "cannot connect to servlet engine", caucho-statuswill show red, and resin.exe hasn't started properly.</li><li>If resin.exe doesn't start properly, you should look at the logsin resin3.2/log.  You should start <var>resin.exe -verbose</var> to getmore information.</li><li>If you get Resin's file not found, the IIS configurationis good but the resin.xml probably points to the wrong directories.</li></ol><s2 name="iis6" title="Troubleshooting IIS 6"><p>IIS 6/Windows 2003 users may need to perform additional steps.</p><ul><li>Make sure that the System account has suffiicient privleges toread the <code>C:\InetPub</code> and <code>C:\InetPub\Scripts</code> directoryand the <code>isapi_srun.dll</code>.</li><li>Check the `Web Service Extensions' listed in the `Internet Service Manager'to make sure that Resin is listed as a Web Service Extension and has a statusof "enabled". You may need to click "add a new web service extension...", under Extension name add .jsp or whatever your file extension is, click Add and browse to the isapi_srun.dll, check the "Set extension statusto allowed box", click OK.</li><li>Check that the user specified as the"application pool identity" for Resin has read/writepermission to the Resin installation directory.In the Internet Service Manager, open the Properties dialog for"Application Pools".  Find the User on the "Identity" tab, it maybe the user named "Network Service" in the drop-down list associatedwith the radio button labeled "predefined".Then check physical file permissions on the Resin installationdirectory and all its subdirectories and subfiles, to ensure thatthat user has read/write permission status is "Enabled".</li></ul></s2></s1></body></document>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -