Configuring IIS6 with Railo

April 7, 2008 · By Gert Franz · 45 Comments

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>.
  1. Download Railo and execute the setup executable file

  2. Check if Railo runs correctly by calling http://localhost:8600/index.cfm you should see the following:


  3. 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} C:\Program Files\Railo>httpd.exe -Xms512M -Xmx512M -conf conf/resin.conf -java_home jre -java_exe jre\bin\java Then the reason for Railo failing to start should be displayed
    • If Railo still does not run function properly, it is time to write an email to railo railo_talk@yahoogroups.com


  4. 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.

  5. Set up a new website according to your needs by using the according wizard.

  6. If not already existent, create a folder named scripts inside a common directory (eg. D:\webroots\).

  7. Copy the file C:\Program Files\Railo\Wind32\isapi_srun.dll into the created directory

  8. Inside the IIS management console navigate to the Web Service Extensions


  9. Click on Add new Web service extension


  10. 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.

  11. 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.

  12. 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.

  13. Save the configuration of the IIS to disk, by selection All tasks/Save Configuration to disk in the context menu of the IIS server

  14. restart the IIS service All tasks/Restart IIS... Now the website should run with Railo.

  15. 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

Tags: Features · HowTo · Railo 2.0

45 responses so far ↓

  • 1 Jeff // Apr 8, 2008 at 8:46 AM

    When do we get to see Railo+Apache+windows!!!
  • 2 Gert Franz // Apr 8, 2008 at 8:51 AM

    Hi Jeff,

    I guess I'll have to blogpost about that one as well :-)

    OK. I'll do so in the next couple of days. Our Website is running under Windows+Apache+Resin+Railo. So it should be soon :-)

    Gert
  • 3 Mark // Apr 11, 2008 at 6:19 PM

    Thank you for this! Most helpful Railo post I've seen yet. Keep up the great posts!
  • 4 AJ Mercer // May 1, 2008 at 3:37 PM

    Hi Gert,

    Along with Apache set up, I would like to see how to set up Railo with multiple web sites.

    Thx
  • 5 JeffP // Aug 6, 2008 at 10:45 PM

    I am trying to get Railo installed and running on my Linux VPS server.
    I am having troubles.
    I need someone to help me and will pay them!
    If you can help, please contact me at:
    http://trilakesdesign.com/contactus.cfm
  • 6 Jeff Gladnick // Aug 6, 2008 at 10:51 PM

    I am still waiting for some of the Coldfusion hosts to offer Railo VPS / Dedicated hosting?

    Has anyone talked to viviotech yet? I use them for one of my VPS's and they are very good with support.
  • 7 Mary Jo Sminkey // Aug 7, 2008 at 2:13 AM

    Well, for a VPS or dedicated server, not sure why you can't just put Railo on there yourself? That's what I do, I have a customer on Railo at kickassvps.com, and may be adding another one soon. I just purchased a standard Windows VPS and installed Railo on it myself (okay, Gert helped me!)
  • 8 Jeff Gladnick // Aug 7, 2008 at 2:17 AM

    For hosting, I prefer not to have to deal with it. If there is anything more then a minor problem, I just ask my host to handle it. Configuring a linux+apache+mysql+railo/cf/etc server is not my expertise.

    As for kickassVPS.com, how do you like the service there? How is their uptime?
  • 9 Mary Jo Sminkey // Aug 7, 2008 at 6:27 AM

    Well, it's something people should be emailing hosts about, if they are interested and looking around. If they never hear about it, and don't have any way to gauge the level of interest, they aren't as likely to consider it worth doing.

    I've been happy with KAVPS so far, no real outages of note in the several months I've been with them, the server just hums along happily (as does Railo). I've mentioned to them that they should look into Railo hosting as an additional offering, but not sure if it's of interest to them or not.
  • 10 Mary Jo Sminkey // Aug 7, 2008 at 6:31 AM

    I will add as well, that this really is one area Railo shines. Yes, it'd be nice to get a server pre-configured with it. But once you've done one install, and know how to do it, it's not that bad. And updates are just so easy, the way they integrated them into the adminstrator. Click the link, it's done! Problem with the update? Just log onto your server and delete it. It's really pretty impressive how easy it is to update and rollback as well, so having a host that offers it really isn't all that big a deal.
  • 11 Jordan // Aug 11, 2008 at 8:17 PM

    Thanks Jeff for bringing this post to our attention. Vivio has announced it's intention to offer Railo hosting at the following URL: http://viviotech.net/hosting.cfm. Just click the &quot;Coming Soon&quot; link off to the left. We are also busily working on a site re-design. =)
  • 12 Paul // Oct 9, 2008 at 12:29 AM

    Really helpful. Following this I had no issues.
  • 13 John // Dec 7, 2008 at 10:59 PM

    Are there also instructions for IIS7 available?
  • 14 Gert Franz // Dec 8, 2008 at 2:04 PM

    No not yet. But there will be soon. I will blogpost about it.

    Gert
  • 15 Compu_guy // Jan 3, 2009 at 3:37 PM

    I was wondering if anyone has sucessfully been able to connect Railo with IIS7 yet?
  • 16 Jason Durham // Jan 3, 2009 at 8:00 PM

    I've faught all day to make Railo 3.0 Community run on a Win2k3 box that already had IIS6 installed on it. It would be very helpful to have updated instructions. My machine is now hosed and I'm frantically looking for a way to remove Railo and get IIS working properly.
  • 17 Brett // Jan 23, 2009 at 11:44 PM

    With the latest download: ralio-3.0.1.000 the host entry needs to have the root directory set to &quot;.&quot; rather than the document directory for it to work.
  • 18 Matt // Mar 13, 2009 at 6:28 PM

    following your instructions, i've been able to get coldfusion test files in the webroot to work properly, but loading sites deeper in has been a problem.

    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?
  • 19 Mike // Mar 23, 2009 at 12:59 AM

    Hi,

    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&quot; file:

    &lt;!-- configures the default host, matching any host name --&gt;
    &lt;host id=&quot;&quot;&gt;
    &lt;!--
    - configures an explicit root web-app matching the
    - webapp's ROOT
    --&gt;
    &lt;web-app id=&quot;/&quot;&gt;
    &lt;document-directory&gt;C:/inetpub/wwwroot&lt;/document-directory&gt;
    &lt;/web-app&gt;

    &lt;web-app id=&quot;/resin-admin&quot; root-directory=&quot;${resin.home}/php/admin&quot;&gt;
    &lt;!--
    - Administration application /resin-admin
    -
    - password is the md5 hash of the password.
    - localhost is true to limit access to the localhost
    --&gt;
    &lt;prologue&gt;
    &lt;resin:set var=&quot;resin_admin_password&quot; value=&quot;&quot;/&gt;
    &lt;resin:set var=&quot;resin_admin_localhost&quot; value=&quot;true&quot;/&gt;
    &lt;/prologue&gt;
    &lt;/web-app&gt;
    &lt;/host&gt;

    &lt;host id=&quot;foo.com&quot;&gt;
    &lt;root-directory&gt;C:/inetpub/wwwroot&lt;/root-directory&gt;
    &lt;web-app id=&quot;/&quot; document-directory=&quot;foo.com&quot;/&gt;
    &lt;/host&gt;

    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
  • 20 Adnan // May 4, 2009 at 3:38 PM

    Well i need to know whether any one of you has tried to setup Railo on IIS5.1 (default IIS with XP).
    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)
  • 21 M. Vaughan // May 11, 2009 at 9:14 AM

    GERT: Sorry I accidentally deleted the comment. Here it is again. Sorry M.


    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?
  • 22 Gert Franz // May 11, 2009 at 9:17 AM

    M.
    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
  • 23 jiaoyin // Jul 4, 2009 at 5:05 AM

    how to setup more websites?
  • 24 Anthony Katgert // Jul 18, 2009 at 12:47 PM

    No Gert I did not have fun with your tutorial, it still does not work, how about offering a license per VPS per month of using and have everything in good working order instead of offering these beta products
  • 25 Gert Franz // Jul 29, 2009 at 1:25 PM

    Sorry Anthony that it didn't work as expected. The installation process is something straightforward. What's the issue? I would of course like to help if possible. Let me know...

    Gert
  • 26 Railo Community // Aug 2, 2009 at 11:07 PM

    Actually Anthony made a few simple mistakes nothing major we the &quot;Railo community&quot; where able to help out now he is a Railo convert. You IIS guide is really good but It might be nice to see this updated to 3.1 ( even though it's almost identical )
  • 27 Mike // Aug 23, 2009 at 3:39 PM

    Thank you so much for this! I tried setting Railo up once in the past and got quickly discouraged. This tutorial really made it EASY. THANK YOU! I'm now using Railo and I love it.
  • 28 Ennio Bozzetti // Oct 14, 2009 at 12:17 AM

    I followed this tutorial and I was able to get Railo to work on IIS6 on windows 2003... they only problem I have is that the root folder is not what I declared on the website on resin.conf like this

    &lt;host id=&quot;sptctest.com&quot;&gt; &lt;root-directory&gt;d:/websites/sptc&lt;/root-directory&gt; &lt;web-app id=&quot;/&quot; document-directory=&quot;d:/websites/sptc&quot;/&gt; &lt;/host&gt;

    is this wrong?
  • 29 jbuda // Dec 3, 2009 at 12:04 PM

    Is there a workaround for using port 80 in resin as opposed to 8600? Im getting the problem where i can see the website if i add the port into the url.

    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!?
  • 30 Paul Kukiel // Dec 3, 2009 at 3:54 PM

    If you follow this guide Railo will be connected to IIS and will be running over port 80 and 8600. The idea is that you only expose port 80 from behind your firewall. But to answer your question yes after you complete these steps Railo will be running on port 80 with IIS.
  • 31 Viktor Karpati // Apr 12, 2010 at 11:13 AM

    Hi!
    I have a strange problem. I am running VirtualBox with Windows 2003 Web Edition installed (it's my dev and test server). IIS6 + Resin + Railo works fine most of the time. All cfm webpages run correctly. However, when I try to reach http://www.mywebsite.com/railo-context, IIS throws a 404. Goodbye for form validation, cfimage, graphs, etc.
    I can reach the administration panel only by adding port 8600 to the URL. Like http://www.mysite.com:8600/railo-context.
    The problem seems to me, that IIS is trying to find the railo-context folder (which does not exist) before passing the request to Resin.
    The funny thing is, that the some problem does not exist on my production server. There I can type http://www.mysite.com/railo-context, and it works. It is the same environment (Win2k3 + IIS + Resin + Railo).
    Any idea?
  • 32 Gert Franz // Apr 12, 2010 at 12:54 PM

    Vicor,

    Have you unchecked the &quot;Verify that file exists&quot; checkbox under Application/Configuration/mapping IIS setting? If you leave that checkbox checked, IIS will verify whether the file exists or not. And since it is only a mapping that only Railo will know about, you need to uncheck that box.

    Gert
  • 33 Martin // May 17, 2010 at 11:14 AM

    This example DOES NOT work in real life. It simply does not work.
  • 34 Gert Franz // May 17, 2010 at 2:27 PM

    Martin,

    I am sorry that the example does not work for you. What problems have you experienced? I install it always in the same way and I hardly have any problems. Can you give us a hint?

    Gert
  • 35 Francis // May 24, 2010 at 8:07 AM

    Hi Gert,
    Is that possible to have both ColdFusion 8 and Railo will work with IIS 6 in Windows XP? Currently I'm having all my ColdFusion 8 sites running under IIS and now i Installed Railo and i'm able to access both the Web and Server Administrator as &quot;http://localhost:8600/railo-context/admin/web.cfm&quot; . But all we want to do is just need to use IIS as a web server for Railo and ColdFusion 8 version. Let me know is that possible.
  • 36 hammeronthenet // May 25, 2010 at 1:38 PM

    The sample-site I've created seems to work ok, but now I've got two problems:
    - I'm unable to reach the railo's admin panel... in any manner I try it didn't work!
    - If I write as URL something like &quot;http://site/appdirectory&quot;, the browser download me index.cfm in clear text. Obviously, if i write &quot;http://site/appdirectory/index.cfm&quot; all works fine.
    I post my resin.conf file (sorry if it's a bit long):
    &lt;!--
    - Resin 3.1 configuration file.
    --&gt;
    &lt;resin xmlns=&quot;http://caucho.com/ns/resin&quot;
    xmlns:resin=&quot;http://caucho.com/ns/resin/core&quot;&gt;
    &lt;!-- adds all .jar files under the resin/lib directory --&gt;
    &lt;class-loader&gt;
    &lt;tree-loader path=&quot;${resin.home}/ext-lib&quot;/&gt;
    &lt;tree-loader path=&quot;${resin.root}/ext-lib&quot;/&gt;
    &lt;tree-loader path=&quot;${resin.home}/lib&quot;/&gt;
    &lt;tree-loader path=&quot;${resin.root}/lib&quot;/&gt;
    &lt;/class-loader&gt;
    &lt;!--
    - Management configuration
    -
    - Remote management requires at least one enabled admin user.
    --&gt;
    &lt;management path=&quot;${resin.root}/admin&quot;&gt;
    &lt;user name=&quot;admin&quot; password=&quot;password&quot; disable=&quot;true&quot;/&gt;
    &lt;resin:if test=&quot;${resin.professional}&quot;&gt;
    &lt;deploy-service/&gt;
    &lt;jmx-service/&gt;
    &lt;log-service/&gt;
    &lt;xa-log-service/&gt;
    &lt;/resin:if&gt;
    &lt;/management&gt;
    &lt;!--
    - Logging configuration for the JDK logging API.
    --&gt;
    &lt;log name=&quot;&quot; level=&quot;info&quot; path=&quot;stdout:&quot;
    timestamp=&quot;[%H:%M:%S.%s] {%{thread}} &quot;/&gt;
    &lt;!--
    - 'info' for production
    - 'fine' or 'finer' for development and troubleshooting
    --&gt;
    &lt;logger name=&quot;com.caucho&quot; level=&quot;info&quot;/&gt;
    &lt;logger name=&quot;com.caucho.java&quot; level=&quot;config&quot;/&gt;
    &lt;logger name=&quot;com.caucho.loader&quot; level=&quot;config&quot;/&gt;
    &lt;!--
    - For production sites, change dependency-check-interval to something
    - like 600s, so it only checks for updates every 10 minutes.
    --&gt;
    &lt;dependency-check-interval&gt;2s&lt;/dependency-check-interval&gt;
    &lt;!--
    - SMTP server for sending mail notifications
    --&gt;
    &lt;system-property mail.smtp.host=&quot;127.0.0.1&quot;/&gt;
    &lt;system-property mail.smtp.port=&quot;25&quot;/&gt;
    &lt;!--
    - Sets the default character encoding to utf-8
    -
    - &lt;character-encoding&gt;utf-8&lt;/character-encoding&gt;
    --&gt;
    &lt;!--
    - You can change the compiler to &quot;javac&quot;, &quot;eclipse&quot; or &quot;internal&quot;.
    --&gt;
    &lt;javac compiler=&quot;internal&quot; args=&quot;-source 1.5&quot;/&gt;
    &lt;!-- Security providers.
    - &lt;security-provider&gt;
    - com.sun.net.ssl.internal.ssl.Provider
    - &lt;/security-provider&gt;
    --&gt;
    &lt;!-- Uncomment to use Resin's XML implementations
    -
    - &lt;system-property javax.xml.parsers.DocumentBuilderFactory
    - =&quot;com.caucho.xml.parsers.XmlDocumentBuilderFactory&quot;/&gt;
    - &lt;system-property javax.xml.parsers.SAXParserFactory
    - =&quot;com.caucho.xml.parsers.XmlSAXParserFactory&quot;/&gt;
    --&gt;
    &lt;cluster id=&quot;app-tier&quot;&gt;
    &lt;!-- sets the content root for the cluster, relative to server.root --&gt;
    &lt;root-directory&gt;.&lt;/root-directory&gt;
    &lt;server-default&gt;
    &lt;!-- The http port --&gt;
    &lt;http address=&quot;*&quot; port=&quot;8600&quot;/&gt;
    &lt;!--
    - SSL port configuration:
    -
    - &lt;http address=&quot;*&quot; port=&quot;8443&quot;&gt;
    - &lt;openssl&gt;
    - &lt;certificate-file&gt;keys/gryffindor.crt&lt;/certificate-file&gt;
    - &lt;certificate-key-file&gt;keys/gryffindor.key&lt;/certificate-key-file&gt;
    - &lt;password&gt;test123&lt;/password&gt;
    - &lt;/openssl&gt;
    - &lt;/http&gt;
    --&gt;
    &lt;!--
    - The JVM arguments
    --&gt;
    &lt;jvm-arg&gt;-Xmx256m&lt;/jvm-arg&gt;
    &lt;jvm-arg&gt;-Xss1m&lt;/jvm-arg&gt;
    &lt;jvm-arg&gt;-Xdebug&lt;/jvm-arg&gt;
    &lt;jvm-arg&gt;-Dcom.sun.management.jmxremote&lt;/jvm-arg&gt;
    &lt;!--
    - Uncomment to enable admin heap dumps
    - &lt;jvm-arg&gt;-agentlib:resin&lt;/jvm-arg&gt;
    --&gt;
    &lt;!--
    - arguments for the watchdog process
    --&gt;
    &lt;watchdog-jvm-arg&gt;-Dcom.sun.management.jmxremote&lt;/watchdog-jvm-arg&gt;
    &lt;watchdog-port&gt;6600&lt;/watchdog-port&gt;
    &lt;!--
    - Configures the minimum free memory allowed before Resin
    - will force a restart.
    --&gt;
    &lt;memory-free-min&gt;1M&lt;/memory-free-min&gt;
    &lt;!-- Maximum number of threads. --&gt;
    &lt;thread-max&gt;256&lt;/thread-max&gt;
    &lt;!-- Configures the socket timeout --&gt;
    &lt;socket-timeout&gt;65s&lt;/socket-timeout&gt;
    &lt;!-- Configures the keepalive --&gt;
    &lt;keepalive-max&gt;128&lt;/keepalive-max&gt;
    &lt;keepalive-timeout&gt;15s&lt;/keepalive-timeout&gt;
    &lt;!--
    - If starting bin/resin as root on Unix, specify the user name
    - and group name for the web server user.
    -
    - &lt;user-name&gt;resin&lt;/user-name&gt;
    - &lt;group-name&gt;resin&lt;/group-name&gt;
    --&gt;
    &lt;/server-default&gt;
    &lt;!-- define the servers in the cluster --&gt;
    &lt;server id=&quot;&quot; address=&quot;127.0.0.1&quot; port=&quot;6800&quot;/&gt;
    &lt;!--
    - Configures the persistent store for single-server or clustered
    - in Resin professional.
    --&gt;
    &lt;resin:if test=&quot;${resin.professional}&quot;&gt;
    &lt;persistent-store type=&quot;cluster&quot;&gt;
    &lt;init path=&quot;session&quot;/&gt;
    &lt;/persistent-store&gt;
    &lt;/resin:if&gt;
    &lt;!--
    - For security, use a different cookie for SSL sessions.
    - &lt;ssl-session-cookie&gt;SSL_JSESSIONID&lt;/ssl-session-cookie&gt;
    --&gt;
    &lt;!--
    - Enables the cache (available in Resin Professional)
    --&gt;
    &lt;resin:if test=&quot;${resin.professional}&quot;&gt;
    &lt;cache path=&quot;cache&quot; memory-size=&quot;64M&quot;&gt;
    &lt;!-- Vary header rewriting for IE --&gt;
    &lt;rewrite-vary-as-private/&gt;
    &lt;/cache&gt;
    &lt;/resin:if&gt;
    &lt;!--
    - Enables periodic checking of the server status and
    - check for deadlocks..
    -
    - All servers can add &lt;url&gt;s to be checked.
    --&gt;
    &lt;resin:if test=&quot;${resin.professional}&quot;&gt;
    &lt;ping&gt;
    &lt;!-- &lt;url&gt;http://localhost:8600/test-ping.jsp&lt;/url&gt; --&gt;
    &lt;/ping&gt;
    &lt;/resin:if&gt;
    &lt;!--
    - Defaults applied to each web-app.
    --&gt;
    &lt;web-app-default&gt;
    &lt;prologue&gt;
    &lt;!--
    - Extension library for common jar files. The ext is safe
    - even for non-classloader aware jars. The loaded classes
    - will be loaded separately for each web-app, i.e. the class
    - itself will be distinct.
    --&gt;
    &lt;class-loader&gt;
    &lt;tree-loader path=&quot;${resin.root}/ext-webapp-lib&quot;/&gt;
    &lt;/class-loader&gt;
    &lt;!--
    - Enable EL expressions in Servlet and Filter init-param
    --&gt;
    &lt;allow-servlet-el/&gt;
    &lt;/prologue&gt;
    &lt;!--
    - Sets timeout values for cacheable pages, e.g. static pages.
    --&gt;
    &lt;cache-mapping url-pattern=&quot;/&quot; expires=&quot;5s&quot;/&gt;
    &lt;cache-mapping url-pattern=&quot;*.gif&quot; expires=&quot;60s&quot;/&gt;
    &lt;cache-mapping url-pattern=&quot;*.jpg&quot; expires=&quot;60s&quot;/&gt;
    &lt;cache-mapping url-pattern=&quot;*.png&quot; expires=&quot;60s&quot;/&gt;
    &lt;!--
    - for security, disable session URLs by default.
    --&gt;
    &lt;session-config&gt;
    &lt;enable-url-rewriting&gt;false&lt;/enable-url-rewriting&gt;
    &lt;/session-config&gt;
    &lt;!--
    - For security, set the HttpOnly flag in cookies.
    - &lt;cookie-http-only/&gt;
    --&gt;
    &lt;!--
    - Some JSP packages have incorrect .tld files. It's possible to
    - set validate-taglib-schema to false to work around these packages.
    --&gt;
    &lt;jsp&gt;
    &lt;validate-taglib-schema&gt;true&lt;/validate-taglib-schema&gt;
    &lt;fast-jstl&gt;true&lt;/fast-jstl&gt;
    &lt;/jsp&gt;
    &lt;/web-app-default&gt;
    &lt;!-- includes the app-default for default web-app behavior --&gt;
    &lt;resin:import path=&quot;${resin.home}/conf/app-default.xml&quot;/&gt;
    &lt;!--
    - Sample database pool configuration
    -
    - The JDBC name is java:comp/env/jdbc/test
    &lt;database&gt;
    &lt;jndi-name&gt;jdbc/mysql&lt;/jndi-name&gt;
    &lt;driver type=&quot;org.gjt.mm.mysql.Driver&quot;&gt;
    &lt;url&gt;jdbc:mysql://localhost:3306/test&lt;/url&gt;
    &lt;user&gt;&lt;/user&gt;
    &lt;password&gt;&lt;/password&gt;
    &lt;/driver&gt;
    &lt;prepared-statement-cache-size&gt;8&lt;/prepared-statement-cache-size&gt;
    &lt;max-connections&gt;20&lt;/max-connections&gt;
    &lt;max-idle-time&gt;30s&lt;/max-idle-time&gt;
    &lt;/database&gt;
    --&gt;
    &lt;!--
    - Default host configuration applied to all virtual hosts.
    --&gt;
    &lt;host-default&gt;
    &lt;!--
    - With another web server, like Apache, this can be commented out
    - because the web server will log this information.
    --&gt;
    &lt;access-log path=&quot;logs/access.log&quot;
    format='%h %l %u %t &quot;%r&quot; %s %b &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot;'
    rollover-period=&quot;1W&quot;/&gt;
    &lt;!-- creates the webapps directory for .war expansion --&gt;
    &lt;web-app-deploy path=&quot;webapps&quot;/&gt;
    &lt;!-- creates the deploy directory for .ear expansion --&gt;
    &lt;ear-deploy path=&quot;deploy&quot;&gt;
    &lt;ear-default&gt;
    &lt;ejb-server&gt;
    &lt;config-directory&gt;WEB-INF&lt;/config-directory&gt;
    &lt;/ejb-server&gt;
    &lt;/ear-default&gt;
    &lt;/ear-deploy&gt;
    &lt;!-- creates the deploy directory for .rar expansion --&gt;
    &lt;resource-deploy path=&quot;deploy&quot;/&gt;
    &lt;/host-default&gt;
    &lt;!-- configures a deployment directory for virtual hosts --&gt;
    &lt;host-deploy path=&quot;hosts&quot;&gt;
    &lt;host-default&gt;
    &lt;resin:import path=&quot;host.xml&quot; optional=&quot;true&quot;/&gt;
    &lt;/host-default&gt;
    &lt;/host-deploy&gt;
    &lt;!-- configures the default host, matching any host name --&gt;
    &lt;host id=&quot;&quot;&gt;
    &lt;!--
    - configures an explicit root web-app matching the
    - webapp's ROOT
    --&gt;
    &lt;web-app id=&quot;/&quot;&gt;
    &lt;document-directory&gt;C:/inetpub/wwwroot&lt;/document-directory&gt;
    &lt;/web-app&gt;
    &lt;web-app id=&quot;/resin-admin&quot; root-directory=&quot;${resin.home}/php/admin&quot;&gt;
    &lt;!--
    - Administration application /resin-admin
    --&gt;
    &lt;prologue&gt;
    &lt;resin:set var=&quot;resin_admin_external&quot; value=&quot;false&quot;/&gt;
    &lt;resin:set var=&quot;resin_admin_insecure&quot; value=&quot;true&quot;/&gt;
    &lt;/prologue&gt;
    &lt;/web-app&gt;
    &lt;/host&gt;
    &lt;host id=&quot;RailoTest&quot;&gt;
    &lt;root-directory&gt;C:/inetpub/wwwroot&lt;/root-directory&gt;
    &lt;web-app id=&quot;/&quot; document-directory=&quot;Railotest&quot;/&gt;
    &lt;/host&gt;
    &lt;/cluster&gt;
    &lt;!--
    - Configuration for the web-tier/load-balancer
    --&gt;
    &lt;resin:if test=&quot;${resin.professional}&quot;&gt;
    &lt;cluster id=&quot;web-tier&quot;&gt;
    &lt;server-default&gt;
    &lt;!-- The http port --&gt;
    &lt;http address=&quot;*&quot; port=&quot;9080&quot;/&gt;
    &lt;/server-default&gt;
    &lt;server id=&quot;web-a&quot; address=&quot;127.0.0.1&quot; port=&quot;6700&quot;/&gt;
    &lt;cache path=&quot;cache&quot; memory-size=&quot;64M&quot;/&gt;
    &lt;host id=&quot;&quot;&gt;
    &lt;web-app id=&quot;/&quot;&gt;
    &lt;rewrite-dispatch&gt;
    &lt;load-balance regexp=&quot;&quot; cluster=&quot;app-tier&quot;/&gt;
    &lt;/rewrite-dispatch&gt;
    &lt;/web-app&gt;
    &lt;/host&gt;
    &lt;/cluster&gt;
    &lt;/resin:if&gt;
    &lt;/resin&gt;
    Where is the problem???
  • 37 spills // Jun 11, 2010 at 12:26 AM

    Any IIS7 &quot;official&quot; instructions for Railo yet? I would love to give it a try on a 2008 box but I am concerned that I don't have all the info needed for &quot;proper&quot; installation i.e. resource management, security, setting up new sites, working with an existing ACF product.
  • 38 Gert Franz // Jun 11, 2010 at 10:46 AM

    Sure,
    just use the installers you find on projects.getrailo.org.
    HTH
    Gert
  • 39 spills // Jun 12, 2010 at 10:50 PM

    @Gert the inststallers @ projects.getrailo.org are in beta and I would prefer Resin and not Tomcat which the installers package.
  • 40 Gert Franz // Jun 15, 2010 at 7:42 PM

    Well it's more about hardening IIS afterwards, which is not a task that any installer should be responsible of. Anyway, if you don't want to check Google for it we are offering services like this on the commercial site. Let me know...

    Gert
  • 41 AL // Jul 23, 2010 at 5:09 PM

    I m trying to get this to work... so far ok. I have a virtual win 2003 with iis6 and its sort of working.

    When i access a site, for instance localhost.. it excutes the cfm index file but it redirects it to /railo-context/
  • 42 Chris // Sep 29, 2010 at 9:37 AM

    I got this working for the most part (Win2k3, IIS6). I can run &quot;foo.com&quot; fine but when I go to add a longer id like the ones below it dies.
    foo.com is fine
    bar.com is fine
    foo.bar.com kills the whole thing and nothing works
    (I just get &quot;Server is currently unavailable or down for maintenance&quot;)
    &lt;!-- this is fine --&gt;
    &lt;host id=&quot;foo.com&quot;&gt;
    &lt;web-app id=&quot;/&quot; root-directory=&quot;d:/vhosts/foo.com&quot;/&gt;
    &lt;/host&gt;
    &lt;!-- this is fine --&gt;
    &lt;host id=&quot;bar.com&quot;&gt;
    &lt;web-app id=&quot;/&quot; root-directory=&quot;d:/vhosts/bar.com&quot;/&gt;
    &lt;/host&gt;
    &lt;!-- this breaks the whole thing and nothing works --&gt;
    &lt;host id=&quot;foo.bar.com&quot;&gt;
    &lt;web-app id=&quot;/&quot; root-directory=&quot;d:/vhosts/foo.bar.com&quot;/&gt;
    &lt;/host&gt;
    Is there some way to turn on logging (to a file) in order to determine exactly what it's having an issue with?
  • 43 Warner Robins GA // Nov 23, 2010 at 3:04 AM

    Thanks for this tutorial!
  • 44 Ks // Mar 10, 2011 at 11:08 PM

    Looks like this tutorial is out of date with the latest Railo release. First it says to download and run setup.exe, so I assume that means the Tomcat version, next the isapi_srun.dll is nowhere to be found in any version I installed.
  • 45 Gert // Mar 15, 2011 at 1:02 AM

    Ks, the tutorial is referring to the Resin installer which was used up to version 3.2 as the default installer. In there a file named setup.exe was located, that is configuring the webserver with the connector (isapi_srun.dll).

Leave a Comment

Leave this field empty: