mode 值设置 说明
off 所有调用方均收到完整的异常信息。
on 所有调用方均收到筛选后的异常信息。
remoteOnly 本地调用方收到完整的异常信息,远程调用方收到筛选后的异常信息。
你把你的mode设置成"On"就无论你自己还是别人访问都是你定义的页面了
<customErrors mode="On" defaultRedirect="./errorpages/GeneralError.htm">
<error statusCode="404" redirect="/errorpages/FileNotFound.htm" />
<error statusCode="403" redirect="/errorpages/GeneralError.htm" />
<error statusCode="500" redirect="/errorpages/GeneralError.htm" />
</customErrors>
off 所有调用方均收到完整的异常信息。
on 所有调用方均收到筛选后的异常信息。
remoteOnly 本地调用方收到完整的异常信息,远程调用方收到筛选后的异常信息。
你把你的mode设置成"On"就无论你自己还是别人访问都是你定义的页面了
<customErrors mode="On" defaultRedirect="./errorpages/GeneralError.htm">
<error statusCode="404" redirect="/errorpages/FileNotFound.htm" />
<error statusCode="403" redirect="/errorpages/GeneralError.htm" />
<error statusCode="500" redirect="/errorpages/GeneralError.htm" />
</customErrors>