coldfusion 10 not working with IIS7 url_rewrite

256 views
Skip to first unread message

Steve Onnis

unread,
Sep 10, 2012, 2:40:37 AM9/10/12
to cfau...@googlegroups.com
Has anyone had a go at using the IIS7 URL_REWRITE module with CF10 applications?

I have it set up on a CF9 server and it is working fine but CF10 just gives me a page not found 404 error.

I have enabled the logging for the wrl rewrite module and it is definatly working and re-writting the url but it seems it is not passing it back into the cf server.

any ideas?

Steve
Message has been deleted

Zac Spitzer

unread,
Sep 10, 2012, 2:47:56 AM9/10/12
to cfau...@googlegroups.com
have you applied the 10.0.1 hotfix?
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cfaussie/-/I8y5Df06NHYJ.
> To post to this group, send email to cfau...@googlegroups.com.
> To unsubscribe from this group, send email to
> cfaussie+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cfaussie?hl=en.



--
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
+61 405 847 168

Steve Onnis

unread,
Sep 10, 2012, 2:52:52 AM9/10/12
to cfau...@googlegroups.com
It is working on CF9. No issues there. The issues is with CF10

-----Original Message-----
From: Paul Kukiel [mailto:kuk...@gmail.com]
Sent: Monday, 10 September 2012 4:46 PM
To: cfau...@googlegroups.com
Subject: Re: [cfaussie] coldfusion 10 not working with IIS7 url_rewrite

The URL re-write module as part of IIS?

If so yes I have that working on http://www.learncf.com and
http://www.cfmldocs.com I took the .htaccess files and imported them ( was
on iis6 cf9 and helicaon ).

I had no issues.

Is the site connected properly with the connector tool. I had some issues
where the site was working is i used site.com/index.cfm but even though the
default docs were set in IIS they would not load till I reconnected the site
to coldfusion.

Paul.
Message has been deleted

Steve Onnis

unread,
Sep 10, 2012, 2:57:52 AM9/10/12
to cfau...@googlegroups.com
Yes the hotfix has been applied

-----Original Message-----
From: Zac Spitzer [mailto:zac.s...@gmail.com]
Sent: Monday, 10 September 2012 4:48 PM
To: cfau...@googlegroups.com
Subject: Re: [cfaussie] coldfusion 10 not working with IIS7 url_rewrite

Steve Onnis

unread,
Sep 10, 2012, 3:04:36 AM9/10/12
to cfau...@googlegroups.com
When you say " they would not load till I reconnected the site to
coldfusion" what do you mean?

-----Original Message-----
From: Paul Kukiel [mailto:kuk...@gmail.com]
Sent: Monday, 10 September 2012 4:56 PM
To: cfau...@googlegroups.com
Subject: Re: [cfaussie] coldfusion 10 not working with IIS7 url_rewrite

As i mentioned I took CF9 IIS6 to IIS7 CF10 without issue.

Paul.

Paul Kukiel

unread,
Sep 10, 2012, 3:06:32 AM9/10/12
to cfau...@googlegroups.com
For some reason on the upgrade the default document stopped working.
Even though in IIS on the top level and on the site level it was listed
it just would not work. WHat I had to do was use the cf connector tool
to "un connect" CF then "re connect" cf. I'm not really sure what went
wrong but that seamed to fix it. Just thought it would be worth a shot.

Paul.

Steve Onnis

unread,
Sep 10, 2012, 3:26:15 AM9/10/12
to cfau...@googlegroups.com
Tried that and still nothing. I did notice that the path_info variable is
still empty. Wasn't the update meant to correct that?

Steve Onnis

unread,
Sep 10, 2012, 3:39:15 AM9/10/12
to cfau...@googlegroups.com
it is a pretty basic rewrite.

<rewrite>
<rules>
<clear />
<rule name="append .cfm" enabled="true"
stopProcessing="true">
<match url="^(.+)" />
<conditions logicalGrouping="MatchAll"
trackAllCaptures="false">
<add input="{REQUEST_FILENAME}"
pattern=".cfm" negate="true" />
<add input="{REQUEST_FILENAME}"
matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}"
matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="{R:0}/index.cfm"
logRewrittenUrl="true" />
</rule>
</rules>
</rewrite>

all it does it make /some-folder/ info /some-folder/index.cfm

The logging is showing this....

REWRITE_ACTION Substitution="{R:0}index.cfm",
RewriteURL="/library/plant-industry/index.cfm", AppendQueryString="true",
LogRewrittenURL="true"
RULE_EVALUATION_END RuleName="append .cfm",
RequestURL="library/plant-industry/index.cfm", QueryString="",
StopProcessing="true", Succeeded="true"
URL_REWRITE_END RequestURL="/library/plant-industry/index.cfm"



This to me is saying that it is handling the url re-write correctly but i am
still getting an IIS 404 message. If i go to
"/library/plant-industry/index.cfm" directly in the browser i get my
coldfusion file loading


Steve

Steve Onnis

unread,
Sep 10, 2012, 9:59:29 PM9/10/12
to cfau...@googlegroups.com
Just an update on this.

The url re-write is definatly working. The rewrite logs show the url being
re written and the IIS logs also show the expected url being logged but the
browser is still showing me the IIS 404-File not found message.

I am starting to think that the "Enable HTTP status codes" setting which i
have turned off hasnt actually turned off for the instance i am running.

Does anyone know where the setting for this are kept? I assume is it in an
XML file somewhere? I would like to double check it
Reply all
Reply to author
Forward
0 new messages