【问题标题】:How to fix 500.1002 error in Azure?如何修复 Azure 中的 500.1002 错误?
【发布时间】:2017-06-04 11:34:14
【问题描述】:

成功构建我们的应用后,我们有 500.1001 或 500.1002 错误。我们尝试将我们的应用程序捆绑到 root 和公共 - 错误 500。我们尝试更正 iisnode.yml 参数(maxNamedPipeConnectionRetry 和 namedPipeConnectionRetryDelay)。我们的应用始终在服务器中。

<?xml version="1.0" encoding="utf-8"?>

<webSocket enabled="false" />

<handlers>
  <add name="iisnode" path="/public/server.bundle.js" verb="*" modules="iisnode"/>
</handlers>

<rewrite>
  <rules>
    <rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
      <match url="^server.bundle.js\/debug[\/]?" />
    </rule>

    <rule name="StaticContent">
      <action type="Rewrite" url="public{REQUEST_URI}"/>
    </rule>

    <rule name="DynamicContent">
      <conditions>
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
      </conditions>
      <action type="Rewrite" url="/public/server.bundle.js"/>
    </rule>
  </rules>
</rewrite>

<security>
  <requestFiltering>
    <hiddenSegments>
      <remove segment="bin"/>
    </hiddenSegments>
  </requestFiltering>
</security>

<httpErrors existingResponse="PassThrough" />

【问题讨论】:

    标签: node.js azure express iisnode


    【解决方案1】:

    我们找到了解决方案。刚刚迁移到带有 Linux 的 VM。

    【讨论】:

    • 我不认为Switch to Linux 解决了How to fix 500.1002 error in Azure 的问题。
    • 这不是解决方案,也许配置在 linux 的情况下有效。我也面临同样的问题
    猜你喜欢
    • 2021-12-22
    • 1970-01-01
    • 2019-10-04
    • 1970-01-01
    • 2019-12-20
    • 2021-07-13
    • 1970-01-01
    • 2021-08-11
    • 1970-01-01
    相关资源
    最近更新 更多