【问题标题】:Rewrite iisnode web.config to allow github server through plesk重写 iisnode web.config 以允许 github 服务器通过 plesk
【发布时间】:2019-06-26 02:15:44
【问题描述】:

我可以在 web.config 中使用不重写条目,并且可以在外部和通过浏览器访问和使用 /plesk-git/app.git。但是当我应用重写代码时:

<clear />
<rule name="app">
 <match url="/*" />
 <action type="Rewrite" url="server/app.js" />
</rule>

我不能再对 git repo 进行更改,repository not found 错误。如何允许从这个通配符重写中排除 git 路径?

【问题讨论】:

    标签: git url-rewriting plesk iisnode


    【解决方案1】:

    好的,我刚刚找到了解决方案。 将条件附加到规则中,如果 url 片段以 /plesk-git/* 为前缀,我可以例外,如下所示:

    <conditions>
      <add input="{URL}" pattern="/plesk-git/*" negate="true"/>
    </conditions>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-21
      • 2012-12-20
      相关资源
      最近更新 更多