问题
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