0

In IIS, I have the following listed as default documents

enter image description here

index.cfm exists and is shown if I navigate to the root of the site.

As soon as I try https://localhost:1234/index.cfm, I get 404.0 error

James A Mohler
  • 11,060
  • 15
  • 46
  • 72

3 Answers3

-2

You can resolve this error by making sure that the two required components of IIS are installed on your system. Namely:

  1. ISAPI Extensions
  2. IIS Metabase and IIS 6 configuration compatibility.

First, start the program called Windows Features. You will find Windows Features under Control Panel –> Programs and Features.

enter image description here

When the Windows Features starts, navigate through the features hierarchy under Internet Information Services and select the two features: ISAPI extensions and IIS Metabase and IIS 6 configuration compatibility.

enter image description here

enter image description here

ColdFusion is now ready to run from IIS. However, IF you’ve ALREADY installed ColdFusion before following the above steps, continue to follow the steps mentioned under ‘Configuring IIS for ColdFusion’:

Configuring IIS for ColdFusion

If you followed the above steps after having installed ColdFusion 8 or 9, you will have to run Web Server Configuration Tool that comes with ColdFusion to configure IIS7 so that all .CFM files are mapped to be handled by ColdFusion.

The following text is directly from ColdFusion installation guide:

1.Start the Web Server Configuration Tool by selecting Start > Programs > Adobe > ColdFusion 9 > Web Server Configuration Tool.

  1. Click Add.

  2. In the Server pop-up menu, select the host name and the server or cluster name to configure. In the ColdFusion server configuration, the server name is always coldfusion. Clustering support is not available on the server configuration.

  3. In the Web Server Properties area, select IIS and specify the website. For IIS, you typically specify All.

  4. Select the Configure web server for ColdFusion applications option, and click OK.

  5. Copy the CFIDE and cfdocs directories from cf_root/wwwroot to your web server root directory. In addition, copy your application’s CFM pages from cf_root/wwwroot to your web server root directory. In the multiserver configuration, these files are under the jrun_root/servers/cfusion/cfusion-ear/cfusion-war directory.

ColdFusion is now ready to serve pages on the Web;

The above content comes from a blog.

Ding Peng
  • 3,702
  • 1
  • 5
  • 8
  • That blog post is specifically for connecting older versions (8/9) of ACF that ran on JRun with IIS7. The OP is using ACF 2016, which runs on Tomcat, and should be on IIS 10. – Adrian J. Moreno Dec 31 '20 at 08:03
  • I can serve a single web page, the default document. I just can't get anything else. I also can't see the default page if I specify its name. – James A Mohler Dec 31 '20 at 16:47
-2

This answer mentions an issue where IIS 8 only responded to the last default document in the list of default documents. Are you using IIS 10 with ACF 2016?

If you are getting this response now:

  • https://localhost:1234/index.cfm 404.0
  • https://localhost:1234/default.cfm 200

What does this return? Only default.cfm?

  • https://localhost:1234/

Remove the entry for default.cfm and restart IIS. Does that respond to index.cfm? If you're not going to use that file as a default anyway, no need to define it as such.

Can you post your web.config file for that site, just the relevant portion, to confirm the values? Could it be showing the global default in the UI, but not actually inheriting that for the specific site?

<configuration>
<system.webServer>
    <defaultDocument enabled="true">
        <files>
            <add value="index.cfm" />
        </files>
    </defaultDocument>
</system.webServer>
</configuration>
Adrian J. Moreno
  • 14,350
  • 1
  • 37
  • 44
  • This is the exact opposite of my problem. I can see the default document, but I can't see anything else. I can't the default document if I specify its name either. – James A Mohler Dec 31 '20 at 16:45
-2

This is the solution that fixed the issue.

If one goes to IIS, there is a virtual directory /jakarta

The physical path associated with the virtual directory was ColdFusion2016\config\wsconfig\1

enter image description here

By adding the D: drive, all works OK.

James A Mohler
  • 11,060
  • 15
  • 46
  • 72
  • 1
    You should use the WSConfig tool to manage the /jakarta virtual directory. If it's not setting the path correctly something is wrong. – Jason Holden Dec 31 '20 at 22:07