在IIS HTTP错误中隐藏物理path

是否有可能从IIS服务器隐藏下面的物理path..?

当有人尝试在浏览器中input错误提示下面的文件夹名称的URL时:

例如: https:// MyDomainAddress / JS

HTTP错误

甚至可以修改web.config.xml来创build自定义错误页面。

<!-- CUSTOM ERROR MESSAGES Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. Add <error> tags for each of the errors you want to handle. "On" Always display custom (friendly) messages. "Off" Always display detailed ASP.NET error information. "RemoteOnly" Display custom (friendly) messages only to users not running on the local Web server. This setting is recommended for security purposes, so that you do not display application detail information to remote clients. --> <customErrors mode="RemoteOnly"/> 

参考: https : //docs.microsoft.com/en-us/iis/configuration/system.webserver/httperrors/