URL为/ AUX并且relaxedUrlToFileSystemMapping为false时如何显示自定义错误页面

时间:2019-01-17 09:35:01

标签: asp.net iis

当我在网址(或此处提到的任何其他网址:https://www.itnews.com.au/news/how-a-1974-bug-still-bites-win10-and-azure-users-515102)中输入/ AUX时 我看到了丑陋的404页面。

我知道我可以将relaxedUrlToFileSystemMapping设置为true,但是我不想这样做。

在这种情况下,我只想显示漂亮的错误页面。可能吗?

我尝试了httpErroscustomErros,但没有用。

0 个答案:

没有答案