1

这是我的第一个问题:)

有什么方法可以在 IIS7 中创建自定义的 503 错误页面。从我读到的内容来看,这个错误页面是由 http.sys 内部提供的,不能被覆盖。这在本页顶部得到确认

但是,我在 Stackoverflow上看到了这显然是可能的问题,但我没有运气尝试实现它。谁能给我一个明确的答案?

提前致谢。

4

1 回答 1

2

Sadly, the TechNet article is accurate - there is no way to replace 503 for the scenario you describe.

The error is detected by the IIS server as it attempts to hand the incoming request to your application. Everything your application does is performed in its app pool. Modules like rewrite rules and custom HTTP responses are all executed in this way.

If your application has no app pool to run in, it unavailable to do any custom processing: there is essentially no code running for your application.

于 2013-09-11T11:57:24.083 回答