[英]ColdFusion 11 throws a 500 error on only one directory
I'm running CF11 on a Windows 2012 R2 server. 我在Windows 2012 R2服务器上运行CF11。 The site (migrated from windows 2003 running CF9) essentially runs great with the exception of 1 directory that I'm getting a 500 error.
该站点(从运行CF9的Windows 2003迁移)基本上运行良好,但1个目录却出现500错误。 When I run www.site.com/test/index.html it shows the page, but www.site.com/test/index.cfm throws the 500 error.
当我运行www.site.com/test/index.html时,它会显示页面,但是www.site.com/test/index.cfm会引发500错误。 I removed the application.cfc and index.cfm has 4 characters... "test" and it throws the error.
我删除了application.cfc和index.cfm,其中有4个字符...“测试”,并引发错误。
I can find nothing unusual about the directory in IIS (8.5) not anything unusual in CF Admin. 我在IIS(8.5)中找不到关于该目录的任何异常信息,而在CF Admin中则没有发现任何异常信息。
I'm 100% perplexed! 我百分百困惑! Any help is appreciated.
任何帮助表示赞赏。
I found the issue. 我发现了问题。 I should have been clear that it was
www.site.com/API/
. 我应该清楚地知道它是
www.site.com/API/
。 We don't use REST components so I commented the following out of the web.xml file and restarted CF and it works fine: 我们不使用REST组件,因此我从web.xml文件中注释了以下内容,然后重新启动CF,它工作正常:
<servlet-mapping id="coldfusion_mapping_16">
<servlet-name>CFRestServlet</servlet-name>
<url-pattern>/api/*</url-pattern>
</servlet-mapping>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.