Skip to main content
Participating Frequently
November 9, 2010
Question

CF9, IIS7.5, CFImage, /CFFileservlet/, Handler Mapping, URL Rewrite

  • November 9, 2010
  • 2 replies
  • 4148 views

I am trying to figure out how to enable the default handler in II7 like it was done in IIS6, with the "Verify file exisits" option turned off.

In IIS7 I have been lead to "Invoke handler only if request is mapped to:" however if that is unchecked, no static files (css, js, etc)  are served.

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    November 12, 2010

    Fixed problem.

    Miguel-F
    Inspiring
    November 12, 2010

    Cool!  Glad you found it.  I was just going to post another link for reference.  Ben had a similar problem and handled it a bit differently than your regex.  Maybe it will help.

    http://www.bennadel.com/blog/1868-URL-Rewriting-And-ColdFusion-s-WriteToBrowser-Image-Functionality-CFFileServlet-.htm

    Miguel-F
    Inspiring
    November 11, 2010

    You don't want the handler unchecked because you are basically disabling it (as you found).  What you want to do is edit each ColdFusion handler mapping and invoke the handler only if the request is mapped to a file (on the Mapping tab).  It is also a good idea to specify only the GET and POST verbs for the handler (on the Verbs tab).  I think that will do what you are after.

    Participating Frequently
    November 12, 2010

    Not sure you understand what is happening.

    I have a server (WEB_DIRECTOR) using Application Request Routing with a reverse proxy.

    That server is pointing to WEB_HOST_1

    WEB_HOST_1 has the new IIS7 URL Rewrite module installed.

    The url rewrite works fine. all cfm pages work fine.

    However, when trying to use the CFFILESERVLET mapping within coldfusion, it doesnt find the file.

    If I were to enable it to check for the file, just like in IIS6 where you UNCHECK verify file exists, this would seem to be counter productive.

    Miguel-F
    Inspiring
    November 12, 2010

    No I guess I don't understand.  If your ColdFusion pages are working then what is the issue?  What are you trying to do?  Which handler are you disabling the option on?  Your static files (style sheets, images, etc) should not stop being served when you disable the option on the ColdFusion handler.  ColdFusion does not need to process those.  What errors are you seeing in your logs?  I think some more info is needed to help you.