Configuring IIS6 with Railo
Many times we have installed Railo on IIS. Here's a guideline on how to install Railo on Win2K3 with IIS6. You can also watch the video on how to install Railo and IIS6.
The Video is found at the bottom of this page. It has been converted with the new tag <cfvideo> and is displayed with the new tag <cfvideoplayer>.
- Download Railo and execute the setup executable file
- Check if Railo runs correctly by calling http://localhost:8600/index.cfm
you should see the following:
- If Railo runs correctly IIS has to be configured. Go to Step 4.
If Railo does not start, or you don't see the above screen, please try the following:
- Check whether the service Railo 2.0 runs
- If the service runs, please check whether the firewall is blocking the server to run
- If the service does not run, please execute the following command in the {railo installation directory}
Then the reason for Railo failing to start should be displayed
C:\Program Files\Railo>httpd.exe -Xms512M -Xmx512M -conf conf/resin.conf -java_home jre -java_exe jre\bin\java - If Railo still does not run function properly, it is time to write an email to railo railo_talk@yahoogroups.com
- IIS and Resin need to mirror their configuration. So every host entry in the IIS (website) needs to reflect in the resin.conf found in the directory C:\Program Files\Railo\conf
You might need to enter following lines inside the
tag of the file:
<host id="myweb.com"> <root-directory>d:/webroots/myweb.com</root-directory> <web-app id="/" document-directory="d:/webroots/myweb.com"/> </host>
or to make it much more comfortable:
<host regexp="(.+)">
<host-name>${host.regexp[1]}</host-name>
<root-directory>d:/webroots/${host.regexp[1]}</root-directory>
<web-app id="/" document-directory="d:/webroots/${host.regexp[1]}"/>
</host>
In the second case resin determines with the help of a regular expression where to locate a certain webroot. So you only need to create a directory named d:\webroots\hostname and the setting is valid without having to restart the application server service. But I wouldn't recommend this kind of definition, because it can grant access to webroots without manually allowing it. - Set up a new website according to your needs by using the according wizard.
- If not already existent, create a folder named scripts inside a common directory (eg. D:\webroots\).
- Copy the file C:\Program Files\Railo\Wind32\isapi_srun.dll into the created directory
- Inside the IIS management console navigate to the Web Service Extensions
- Click on Add new Web service extension

- Add the dll as a named extension and set it's status to Allowed
Now your dll is a allowed extension you can use within the web site. - If you want to use Railo globally with every website you create, right click on websites and follow the instructions below.
- Click on "Web Sites" Properties
- Click on Home Directory/Configuration
- Add two Application Extension Mappings for .cfm and .cfc pointing to D:\webroots\scripts\isapi_srun.dll
Please uncheck the Verify that file exists checkbox.

- Click on "Web Sites" Properties
- If you only want a certain webhost to act on .cfm and .cfc files with Railo, you need to execute the above actions for the respective Website.
- Save the configuration of the IIS to disk, by selection All tasks/Save Configuration to disk in the context menu of the IIS server
- restart the IIS service All tasks/Restart IIS...
Now the website should run with Railo.
- If you experience any issues with Railo, please follow the instructions on the following documentation page: http://www.caucho.com/resin-3.1/doc/install-iis.xtp



Gert
when i point my browser to for instance, http://localhost/site1/, it attempts to download the index.cfm file as opposed to executing it.
any clue as to where i'm screwing up the configuration?
I'm trying to set this up on my Vista 32bit machine with IIS7. I have it working on port 8600 but I can't seem to get it to work on port 80 with my CFM pages? This is what I have in my /railo/conf/resin.conf" file:
<!-- configures the default host, matching any host name -->
<host id="">
<!--
- configures an explicit root web-app matching the
- webapp's ROOT
-->
<web-app id="/">
<document-directory>C:/inetpub/wwwroot</document-directory>
</web-app>
<web-app id="/resin-admin" root-directory="${resin.home}/php/admin">
<!--
- Administration application /resin-admin
-
- password is the md5 hash of the password.
- localhost is true to limit access to the localhost
-->
<prologue>
<resin:set var="resin_admin_password" value=""/>
<resin:set var="resin_admin_localhost" value="true"/>
</prologue>
</web-app>
</host>
<host id="foo.com">
<root-directory>C:/inetpub/wwwroot</root-directory>
<web-app id="/" document-directory="foo.com"/>
</host>
I've also added this domain in my host file as well. Every time I try to call:
http://foo.com/test.cfm
Which is my test script that prints the numbers 1 to 10 on the screen I get the following error in FireFox:
Connection Interrupted
The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please try again.
But if I run the script from this URL:
http://foo.com:8600/test.cfm
Everything works fine. Am I doing something wrong in my setup? Any help would be appreciated.
Thank you,
Mike
I want to setup Railo on XP with IIS5.1.
Another question, this tutorial used Railo server, how can i achieve the same task with Railo Express. (developer edition)
I'm having the same problem as Mike...
When I go to http://foo.com/test.cfm, I will get connection interrupted errors, but when I go to http://foo.com:8600/test.cfm, everything seems to work fine... Also interesting is that in either case, if I type the name of a non-existant cfm page, I will see an error page from railo stating the file cannot be found.
Suggestions?
You should first of all contact our Mailing list: railo@googlegroups.com. Second, we'll try to replay the installation with a Resin 3.1.9 version as well since there were some issues with Resin 3.1.x below version 3.1.7. But in this case the installation needs to be made manually. Please check the corresponding documentation here:
http://classic.railo.ch/en/index.cfm?treeID=215
Gert
Gert
<host id="sptctest.com"> <root-directory>d:/websites/sptc</root-directory> <web-app id="/" document-directory="d:/websites/sptc"/> </host>
is this wrong?
I have tried to change the default site in IIS6 to use a different port, but when i do and then try the website using Railo, i get a Bad Request error message.
Any help please!?