Skip to main content
Participating Frequently
November 20, 2012
Answered

Error 404.2 trying to serve index.cfm as directory default page

  • November 20, 2012
  • 1 reply
  • 10210 views

Hello,

Here is my server

- Windows 2008 Server R2 Ent

- IIS 7.5

- ColdFusion 10

CF10 installation ran smoothly, the wsconfig seems to have created all necessary stuffs like :

ISAPI filter : tomcat C:\ColdFusion10\config\wsconfig\1\isapi_redirect.dll

ISAPI restriction authorized : tomcat_all C:\ColdFusion10\config\wsconfig\1\isapi_redirect.dll

index.cfm added in Document by default, placed at first place up in the list

cfide, jakarta virtual directories created, etc..

Everything is running ok EXCEPT that IIS is unable to server index.cfm as a directory default page :

- this generate an error : http://www.example.com/ (to simplify, index.cfm is the only page in root directory)

- this doesn't generate an error and serve the index.cfm page correctly : http://www.example.com/index.cfm

Error 404.2 is talking about (in french)

"La page que vous avez demandée est introuvable en raison des paramètres de la liste des restrictions ISAPI et CGI du serveur Web."`

I don't see anything special in ISAPI/CGI restrictions parameters, they are even the same as on the dev server which doesn't have the problem...

I tried to remove the connectors by running wsconfig and then re-run to reinstall the connectors, without success.

Any help appreciated as I'm running out of idea...

Thank you.

    This topic has been closed for replies.
    Correct answer Miguel-F

    right, I tested without the file in the directory and it doesn't change anything


    Yes, no surprise there.  Well everything that I am finding for that particular error discusses the ISAPI and CGI restrictions option within IIS.  The error itself states the same - "HTTP Error 404.2 - Not Found The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server".

    Are you sure that the settings for that are the same on both servers AND that they are enabled the same on both servers?

    I realize that it works when you specify index.cfm but that error is telling you that the ISAPI and CGI settings aren't correct.  Otherwise it would just be a normal 404.  Right?

    1 reply

    Miguel-F
    Inspiring
    November 20, 2012

    I have found a couple of posts relating to IIS 404.2 errors and the common symptom appears to be enabling the ISAPI and CGI.  Is it enabled on your server?

    http://forums.adobe.com/message/4561393?tstart=0

    http://support.microsoft.com/kb/942040

    http://stackoverflow.com/questions/2665578/404-2-error-after-installing-net-4-0

    Participating Frequently
    November 20, 2012

    Hello Miguel,

    well yes I suppose as this IIS is serving a full of other CFM and CFC pages correctly and http://www.example.com/index.cfm is parsed and served with (in this case) the current date/time Now().

    Miguel-F
    Inspiring
    November 20, 2012

    Is this only a problem in the root folder or everywhere?

    Are you running distributed mode (IIS and ColdFusion on separate servers) or on the same server?