【发布时间】:2019-09-18 00:01:44
【问题描述】:
- Windows 服务器 2012 R2
- IIS 8.5
- 简单的单文件 index.html 网站
- 在应用程序池中选择 .NET CLR 4.0
在这一步网站工作。然后我为 IIS 安装 URL 重写模块。不要为 URL Rewrite 添加任何规则,但是当我在浏览器中打开网站时,该网站的应用程序池停止。
错误信息:
HTTP Error 503. The service is unavailable.
来自
的日志%SystemDrive%\Windows\System32\LogFiles\HTTPERR
#Software: Microsoft HTTP API 2.0
#Version: 1.0
#Date: 2019-04-29 13:34:12
#Fields: date time c-ip c-port s-ip s-port cs-version cs-method cs-uri sc-status s-siteid s-reason s-queuename
2019-04-29 13:34:12 127.0.0.1 49200 127.0.0.1 80 HTTP/1.1 GET / 503 5 AppOffline test.com29 13:34:12 127.0.0.1 49200 127.0.0.1 80 HTTP/1.1 GET / 503 5 AppOffline test.com
此目录没有日志文件:
%SystemDrive%\inetpub\logs\LogFiles
当一个 URL Rewrite 模块卸载后,网站池开始正常工作。
为什么 URL Rewrite 模块不让 CLR 停止?
更新
事件日志消息:
The Module DLL C:\Windows\system32\inetsrv\rewrite.dll failed to load. The data is the error.
然后我添加到 applicationHost config bitness32
C:\Windows\System32\inetsrv\config\applicationHost
<add name="RewriteModule" image="%SystemRoot%\system32\inetsrv\rewrite.dll" preCondition="bitness32" />
使用 bitness32 它不会停止池,但我在浏览器中收到此错误:
HTTP Error 500.0 - Internal Server Error
Module "RewriteModule" could not be found
【问题讨论】:
-
检查事件日志消息
-
@Rich-Lang 在问题中添加了日志消息
-
AppOffline 出现服务不可用错误(HTTP 错误 503)。该服务不可用,因为应用程序错误导致应用程序脱机。是否有任何事件日志消息?
-
@Rich-Lang 在问题中添加了 EventLog 消息
-
为什么要将该配置添加到配置文件中?所有这些都应该自动处理。此外,它之前显然有一些 Rewrite 配置,因为它知道 DLL 会给出错误。事件日志的“数据”部分是什么?另外,你是如何安装 URL Rewrite 的?
标签: .net iis clr pool url-rewrite-module