在IIS中,当我在IIS中打开任何模块时都会看到此信息。
---------------------------
Error Pages
---------------------------
There was an error while performing this operation.
Details:
Filename: \\?\C:\inetpub\app\web.config
Error:
---------------------------
OK
---------------------------
我怎么知道是什么?
我还读到周围可能是我缺少模块?网址可能会重写吗?
<rewrite>
<rules>
<rule name="SPA Routes" stopProcessing="true">
<!-- match everything by default -->
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<!-- unless its a file -->
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<!-- or a directory -->
<!--<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />-->
<!-- or is under the /api directory -->
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
<!-- list other routes or route prefixes here if you need to handle them server side -->
</conditions>
<!-- rewrite it to /index.html -->
<action type="Rewrite" url="App/index.html" />
</rule>
</rules>
</rewrite>
有人知道我应该怎么做吗?
谢谢