I took the time to document the steps I went through when adding a new Railo-enabled IIS7 site, so thought I'd share them. This brief tutorial assumes that you have already previously installed Railo in this environment and that the site you are creating has either its own domain or subdomain name. My specific scenario is that I'm using Railo 3.1x on Windows Standard Server 2008 with IIS7 and Tomcat 6. You may have to adjust some of the steps to fit your particular environment.
Adding a New Railo Site
1. Create a new site in IIS
a.create a folder that will be the root of your new site;
b. Add the site in IIS and point it to the folder you created above;

2. Create a small test.html page and drop it in to your new site's root
3. add the new site name to either your HOSTS file or your DNS (if you manage that yourself)

4. Open a browser and browse to your test.html file, just to test things up to this point.

5. Add a virtual directory to your site called "jakarta" that points to the folder in which your isapi_redirect-1.2.28.dll (or equivalent) redirector resides. (if you don't know what the redirector is, you may need to visit the prior tutorials on installing Railo the first time.)

6. Add an ISAPI filter to your site that points to the redirector DLL mentioned in the previous step

7. Restart the site in IIS
8. Create a small test CFM template in your site's root
9. Add a HOST entry to your Tomcat6/conf/server.xml file

10. Restart Tomcat (you'll now notice that a WEB-INF folder was created in your new site's root! This is a very good sign)

restart Tomcat

web-inf folder was added automatically!
11. Browse to your test CFM template. You should be having success at this point!

You are not logged in, so your subscription status for this entry is unknown. You can login or register here.
The first thing I've come across that I need clarified...when creating the site in IIS, I create mine with host names since my server only has one IP address. Would this effect anything?
I hadn't done any of the host file changes before this since I was handling it in my DNS settings. So I tried adding my site to the hosts like this:
127.0.0.1 www.mydomain.com
Here's what happens:
When browsing locally from the web server -
http://www.mydomain.com/test.html = works fine.
http://www.mydomain.com/index.cfm = HTTP Error 404.3 - Not Found
http://www.mydomain.com:8081/index.cfm = works like a charm...page processes as expected.
When browsing from an external machine -
http://www.mydomain.com/test.html = works fine.
http://www.mydomain.com/index.cfm = 404 - File or directory not found.
http://www.mydomain.com:8081/index.cfm = times out...no response.
Any ideas?
Both servers are windows 2008 R2 64bit running the same version of java, railo, isapi_redirector and tomcat.
I haven't touched this in quite a while, so i'm shooting in the dark, but...
did you make sure and enable the application pool in IIS to be 32 bit? the redirector dll is 32 bit, so i think that has to be set in order for it to work right.
Besides that, the only thing i would recommend is to do what i had to do a few times: start all over with the IIS config part of things. create a new site, virtual jakarta folder, etc.
Let me know what you figure out if it's something different than the TO DO items in the blog post!
Doug :0)

