IIS URL重写超时1分钟



你好,我有一个关于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设置中添加什么?

您可以试试:iis console(运行inetmgr) ->根节点(起始页)->(iis部分)应用请求路由缓存->(右侧)服务器代理设置->超时

最新更新