IIS部署应用显示500.19-Internal Server Error
在服务器上部署vue写的门户信息和一个后端应用,部署后显示500.19-Internal Server Error
操作系统:Windows server 2012
报错截图:
经过检查发现,webconfig里面有部分节点导致
<rewrite>
<rules>
<rule name="Handle History Mode and custom 404/500" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
经过查询了解得知是没有安装URL 重写模块导致:URL 重写模块是 IIS 用来处理 rewrite 规则的必要组件,要是未安装该模块,IIS 就无法识别 rewrite 规则
安装可参考地址: https://www.iis.net/downloads/microsoft/url-rewrite

浙公网安备 33010602011771号