我们运行主站点并希望在/ tesmer文件夹下运行第二个站点。在演示网站上它完美无缺。当我在Windows服务器上上传时,/ tesmer /正确显示。任何子页面/ tesmer / smmm-sinav-islemleri都有404错误。
我们使用Url重写,似乎在IIS下网址重写错误。
开发网站下的工作页面: http://demo.dijitall.net/izsm/tesmer/smmm-sinav-islemleri
IIS / Windows Server 2016上的非工作页面 http://yeni.izsmmmo.org.tr/tesmer/smmm-sinav-islemleri
下面是/ tesmer文件夹中的web.config文件
**returns LOGS in CI:**
2018-06-15T20:39:06.9176120Z ##[section]Starting: npm run e2e tests
解决方案是什么?正确的URL写规则或其他什么?
答案 0 :(得分:0)
我已添加该规则:
<rule name="tesmer22" stopProcessing="true">
<match url="^tesmer/([0-9a-zA-Z-_/]+)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="tesmer\index.php?par={R:1}" />
</rule>