无法在 windows 服务器上显示图像

Cannot display image on windows server

我正在点击这个 url 来显示图像

http://glilittest.com/uploads/claim_document_uploads/2017-1/2017-1_loan_contract1.jpg

但它给我这个错误

这是我的 web.config 文件

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
          <rules>
            <rule name="Rule 1" stopProcessing="true">
              <match url="^(.*)/$" ignoreCase="false" />
              <action type="Redirect" redirectType="Permanent" url="/{R:1}" />
            </rule>
            <rule name="Rule 2" stopProcessing="true">
              <match url="^" ignoreCase="false" />
              <conditions>
                <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="index.php" />
            </rule>
          </rules>
        </rewrite>
    </system.webServer>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

我可以确认图像的路径是正确的。已启用目录浏览并授予文件夹所有权限。

如何解决这个问题?

我发现问题出在站点的身份验证设置上。当我在身份验证设置中启用 Anonymous Authentication 时,它运行良好。