I have a virtual website running off of IIS (looks like version 6.1, SP 1) and ColdFusion 11.
When I access a page as http://something.example.org/ which uses a ColdFusion template (index.cfm), the page correctly displays. However, when I request http://something.example.org/index.cfm it results in a 404.
Another virtual website on the same server behaves correctly, returning successfully for both http://other.example.org and http://other.example.org/index.cfm
Since I just set up this new website, I'm wondering if there is an additional setting I'm just missing that prevents this error from occurring.
DefaultDocument is definitely not involved since, e.g. http://something.example.org/foo.cfm also results in a 404 even when foo.cfm exists in the root folder. Meanwhile, it finds foo.html in the same folder, so it's definitely not pointing to the wrong place.
Looks like the error was caused because my website's physical path was set to
c:\path\to\directory\
instead ofC:\path\to\directory
. Once I took off the trailing backslash (pretty sure capitalization of the drive letter was a red herring but changed it just in case), the 404s stopped. My best guess is that when you include the backslash at the end, this changes the mapping sent to CF.I also followed these instructions to add a virtual
jakarta
directory:Not sure whether adding the
jakarta
directory is necessary or not, but it definitely wasn't sufficient: the problem was not fixed until I removed the trailing slash.