ColdFusion 10, IIS 7.5, and custom 404 page

萝らか妹 提交于 2019-12-14 03:54:34

问题


I am attempting to setup a custom 404 error with CF10 and IIS 7.5. Previous to CF10 (and IIS 7), you can get the URL of the non-existent page via the querystring (e.g., 404;http://www.example.com/some/file.html) when the custom 404 page is processed. However, with CF10 and IIS 7.5, the querystring returns 404;http://www.example.com/jakarta/isapi_redirect.dll. Is there a way to retrieve the actual URL of the missing path, like in prior versions?


回答1:


I have a workaround that I posted to the page Miguel-F commented on:

ColdFusion 10 + IIS: Non-existant URLs that are CFM files. Retrieving original URL after executing 404 page

It's not pretty but it works...




回答2:


Problems with custom 404 error pages and IIS 7.5 were addressed in the latest CF10 update - Update 11. You have to re-run the web server connector once you install the update. If you do not re-run the web server connector, then the IIS/custom 404 error pages problem will not be fixed. This is the official blog post regarding Update 11 and the web server connector. The fixes introduced in Update 11 may solve your problem.



来源:https://stackoverflow.com/questions/17956552/coldfusion-10-iis-7-5-and-custom-404-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!