IIS7 not picking up the default .cfm document

1,144 views
Skip to first unread message

Sparky

unread,
Jan 3, 2011, 2:20:31 PM1/3/11
to Railo
getting to the end of my rope, I have trying almost everything, done a
lot of searching and read a lot blogs ect but I cannot reslove my
issue, can anyone help me out with the issue below :)

issue.....

First Ralio works! when I type in the url www.domain.co.uk/index.cfm
however if I type in just www.domain.co.uk (without the index.cfm) the
default document .cfm is not picked up and I just get served a blank
page. Ralio is looking in the right directory and no other default
document is being picked up by IIS.

what I have tried...

I have set the default document to .cfm for the site.
I have added *.cfm and *.cfc in the handler mapping point to C:\railo
\connector\isapi_redirect-1.2.28.dll
There are no ISAPI or CGI restrictions for C:\railo\connector
\isapi_redirect-1.2.28.dll
ISAPI for the domain is C:\railo\connector\isapi_redirect-1.2.28.dll
and the same name as local above 'Ralio'

my currect settings....

I setup Railo using the ViVio installer on Tomcat, II7 64bit

server.xml setting at C:\railo\tomcat\conf is....

<Host name="www.domain.mobi" appBase="webapps">
<Context path="" docBase="D:\web-sites\domain.mobi\" />
</Host>



Jordan Michaels

unread,
Jan 3, 2011, 5:45:39 PM1/3/11
to ra...@googlegroups.com
What version of the installer are you using? The default document should
be automatically configured by the IIS7 connection scripts (located by
default in c:\railo\connector\) in the latest installer.

The script that do this are iis7connect.bat and iis7remove.bat, which
can be used to add and remove the required IIS configs. If you run these
from powershell, you can see if any part of the process is throwing an
error and what may be causing the default document part to fail.

If you want to configure the default document manually, I wrote about
how to do that here:

http://groups.google.com/group/railo/browse_thread/thread/8706a5a4b025f393

Let us know how it goes.

-Jordan

Bilal

unread,
Jan 3, 2011, 10:35:33 PM1/3/11
to Railo
There could be several things that could be off in IIS7 that could be
worth taking a look.

Your document handling feature could be turned off:
IIS7 is modular and this feature could be disabled:
See this article for more background:
http://technet.microsoft.com/en-us/library/cc754807(WS.10).aspx


You have multiple potential default documents in the target directory
and another default is being picked up first.
You can check on the configuration of your IIS7 and change the order
of document processing or remove the other default documents.
There is a technet article that may be useful:
http://technet.microsoft.com/en-us/library/cc753615(WS.10).aspx

Hope this helps,
Bilal

Sparky

unread,
Jan 4, 2011, 11:42:34 AM1/4/11
to Railo
Thanks for the help. Useful post tried all of them tho :( it's not
that default document is not working, as if i put .html
above .cfm .html runs, but unless I type index.cfm all i get served is
a blank page. I checked the source of the blank page and it is blank
(the page does not exist). no errors with the iis7connect.bat files
and all extensions are installed correctly (from my understanding).
Tomcat looks like it handles the page

I have below everything I think is relevant below, these are my
currect settings. I am just playing with Railo now, so it's not a
issue as I can still use it, just bugging me about the install.

web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.cfm" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>


handler mapping is setup, default doc for .cfm is enabled local and on
the parent, so are all the filters. CF does work but only when i call
index.cfm...

ISAPI FILTER
Name: Railo Executable: C:\railo\connector\isapi_redirect-1.2.28.dll

Default Doc
index.cfm - enabled

Hanlder Mappings
Enabled: ISAPI.dll Path: *.dll Handler: IsapiModule
Enabled: cfc Path: *.cfc Handler: IsapiModule
Enabled: cfm Path: *.cfm Handler: IsapiModule

Instaler: railo-3.1.1.000-pl0-windows-instler.exe


workers.properties...


worker.list=railolb,jkstatus

# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

# Defining a load balancer
worker.railolb.type=lb
worker.railolb.balance_workers=ajp13w

# Define status worker
worker.jkstatus.type=status

Jordan Michaels

unread,
Jan 4, 2011, 2:16:45 PM1/4/11
to ra...@googlegroups.com
Okay. The "blank page" is an indicator that IIS isn't getting a response
(or is getting an error) when it tries to pass off the request to the
isapi_redirect.dll connector.

If the isapi_redirect.dll is actually getting run, there should be a log
file of the error it's getting in c:\railo\tomcat\logs\isapi_redirect.log.

If no log file exists, that means that the isapi_redirect.dll is not
being executed and that there's a problem with the IIS hand-off. Turn on
debugging error messages in IIS and see if that yields additional
information, and you could also check Windows Event Viewer to see if IIS
is throwing any errors that it's not displaying.

If all else fails, please tell me what IIS modules you have installed
and I can attempt to duplicate the problem in a dev environment to come
up with a fix.

-Jordan

--
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
509.593.4207 x 1001

Sparky

unread,
Jan 4, 2011, 5:13:41 PM1/4/11
to Railo
Thanks Jordan,

isapi_redirect.log has the same throughout

[Tue Dec 08 14:00:06.865 2009] [1220:3200] [info] jk_isapi_plugin.c
(2405): Starting Jakarta/ISAPI/isapi_redirector/1.2.28
[Tue Dec 08 14:00:06.871 2009] [1220:3200] [info] jk_isapi_plugin.c
(2572): Jakarta/ISAPI/isapi_redirector/1.2.28 initialized
[Tue Dec 08 14:01:05.622 2009] [1220:508] [info] jk_isapi_plugin.c
(2250): Jakarta/ISAPI/isapi_redirector/1.2.28 stopping
[Tue Dec 08 14:01:41.580 2009] [1192:3284] [info] jk_isapi_plugin.c
(2405): Starting Jakarta/ISAPI/isapi_redirector/1.2.28
[Tue Dec 08 14:01:41.585 2009] [1192:3284] [info] jk_isapi_plugin.c
(2572): Jakarta/ISAPI/isapi_redirector/1.2.28 initialized
[Tue Dec 08 14:01:48.127 2009] [2940:3976] [info] jk_isapi_plugin.c
(2405): Starting Jakarta/ISAPI/isapi_redirector/1.2.28
[Tue Dec 08 14:01:48.133 2009] [2940:3976] [info] jk_isapi_plugin.c
(2572): Jakarta/ISAPI/isapi_redirector/1.2.28 initialized
[Tue Dec 08 14:02:24.754 2009] [2940:3556] [info] jk_isapi_plugin.c
(2250): Jakarta/ISAPI/isapi_redirector/1.2.28 stopping
[Tue Dec 08 14:02:33.272 2009] [2940:3976] [info] jk_isapi_plugin.c
(2405): Starting Jakarta/ISAPI/isapi_redirector/1.2.28

just seems to start then stop, is this right? no errors tho, just
info.

I do appreciate the help, however I don't want you to waste your
valuable time on this, most likely it's me and how I have setup IIS 7.
I am thinking of just reinstalling again, more so now that a new
version of Ralio is out. However if you feel it's a problem with the
installer I will try and give you as much information as possible.


screen shots of IIS settings...

All Handler Mappings
http://i53.tinypic.com/mwwdxl.jpg

ISAPI Filters
http://i52.tinypic.com/10rl7hi.jpg


Modules
http://i51.tinypic.com/2vc85l4.jpg

Do you spot anything?




Jon Cavanaugh

unread,
Jan 5, 2011, 11:01:40 PM1/5/11
to Railo
Just curious, do you have a virtual directory named "jakarta" and
pointing to the connectors folder?

Jon C.
> Moduleshttp://i51.tinypic.com/2vc85l4.jpg
>
> Do you spot anything?

Russ Michaels

unread,
Jan 6, 2011, 12:36:04 PM1/6/11
to ra...@googlegroups.com
Did you by any chance previously have CF installed and still have the wildcard application handler mapping on the site ?

Russ
--
---
Russ Michaels
my blog: www.michaels.me.uk
www.cfmldeveloper.com - free CFML hosting for developers
www.bluethunderinternet.com - professional ColdFusion and Railo hosting


Jordan Michaels

unread,
Jan 6, 2011, 2:07:32 PM1/6/11
to ra...@googlegroups.com
For this:

> All Handler Mappings
> http://i53.tinypic.com/mwwdxl.jpg

Did you add the cfc and cfm entries by hand? The batch files don't add
those so I'm wondering where they came from.

Also check the uriworkermap.properties file (in c:\railo\tomcat\conf\)
and see where the "/" entry is mapped. It should be mapped to the
default ajp13 worker. If it's not, then that would explain why the
connector isn't picking it up after the handler mapping is passing off
to it.

-Jordan

--

Reply all
Reply to author
Forward
0 new messages