【问题标题】:IIS URL REWRITE TIMEOUT IN 1 minsIIS URL 重写超时 1 分钟
【发布时间】:2022-11-10 09:50:29
【问题描述】:

您好,我有一个关于 IIS 的问题。我在窗口服务器中使用 node.js 应用程序。 这是我的 web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="ReverseProxyInboundRule1" stopProcessing="true">
          <match url="(.*)"/>
          <conditions>
            <add input="{CACHE_URL}" pattern="^(https?)://"/>
          </conditions>
          <action type="Rewrite" url="http://localhost:8082/{R:1}"/>
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

我已经设置了server.setTimeout(1800000) 但是,我使用 axios 调用 chrome。

axios({
  method: 'GET',
  url: '/api',
  timeout: 5 * 1000 * 60
})

但是我在 Chrome 中一分钟后仍然失败。我需要在 IIS 设置中添加什么?

【问题讨论】:

标签: node.js axios iis-10


【解决方案1】:

你可以试试这个:iis控制台(运行inetmgr)-> rootnode(起始页)->(iis部分)应用程序请求路由缓存->(在右侧)服务器代理设置->超时

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-08-30
    • 2013-07-01
    • 2016-06-27
    • 2013-06-16
    相关资源
    最近更新 更多