url重写规则导致err_too_many重定向

时间:2016-12-22 12:13:03

标签: nginx url-rewriting url-redirection artifactory

我正在使用一个docker容器来实现神器。在容器中,存在以下重定向规则code on github。是否有编辑以避免出现上述错误?网址为artifactory.inmz.net

 <
urlrewrite>
    <rule>
        <name>redirect from  / to artifactory url</name>
        <condition name="path-translated" operator="notequal">artifactory</condition>
        <from>^/(.*)$</from>
        <to type="permanent-redirect" last="true">/artifactory/$1</to>
    </rule>

0 个答案:

没有答案