我想主持一个nodejs和php在同一天的网页应用程序。我已经成功地托管了nodejs应用程序,而且它可以工作。当我试图使用web.config忽略php文件所在的子文件夹时。
首先我试了这个
<!-- All other URLs are mapped to the node.js site entry point -->
<rule name="DynamicContent">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
<add input="{REQUEST_URI}" matchType="Pattern" pattern="phpbb/(.*)" ignoreCase="true" negate="true" />
</conditions>
<action type="Rewrite" url="index.js"/>
</rule>然后这个(复制公用文件夹的规则)
<!-- First we consider whether the incoming URL matches a physical file in the /public folder -->
<rule name="StaticContent">
<action type="Rewrite" url="public{REQUEST_URI}"/>
</rule>但似乎什么都起不到作用。如果我能得到任何帮助,我将不胜感激。
发布于 2017-12-08 05:30:13
我建议你检查一下这段视频:使用PHP、node.js、.NET等制作多语言Azure网站。
注意: Web应用程序与网站类似。Web应用程序是Arm模式的资源。网站是典型的模式。
https://serverfault.com/questions/887017
复制相似问题