我只是在IIS上部署我的节点js应用程序。现在,当我试图在服务器外访问此应用程序时,我收到此错误
405 - HTTP verb used to access this page is not allowed.
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
我可以在服务器内访问此应用程序。 我的web.config文件是
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="app.js" verb="*" modules="iisnode" resourceType="Unspecified" requireAccess="Script" />
</handlers>
<directoryBrowse enabled="false" />
<rewrite>
<rules>
<rule name="sendToHelpline">
<match url="/*" />
<action type="Rewrite" url="app.js" />
</rule>
</rules>
</rewrite>
<security>
<requestFiltering>
<verbs applyToWebDAV="true">
<add verb="GET" allowed="true" />
<add verb="POST" allowed="true" />
</verbs>
</requestFiltering>
</security>
</system.webServer>
</configuration>
我该如何解决这个问题。 请帮忙。
提前致谢。