In IIS, I have the following listed as default documents
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
In IIS, I have the following listed as default documents
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
You can resolve this error by making sure that the two required components of IIS are installed on your system. Namely:
First, start the program called Windows Features. You will find Windows Features under Control Panel –> Programs and Features.
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.
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.
Click Add.
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.
In the Web Server Properties area, select IIS and specify the website. For IIS, you typically specify All.
Select the Configure web server for ColdFusion applications option, and click OK.
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.
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:
What does this return? Only default.cfm
?
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>
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
By adding the D:
drive, all works OK.