Asp.net Azure正在阻止来自同一服务器的请求 上下文
Umbraco CMS网站在Azure as应用程序服务上运行 定时发布 Umbraco的功能之一是允许在给定时间发布内容。发布功能对同一网站(或负载平衡环境中不同服务器但相同网站)进行HTTP调用 API调用url: IP安全 由于客户要求,对站点的访问仅限于给定的IP地址列表。此任务正在web.config中使用IP安全限制完成Asp.net Azure正在阻止来自同一服务器的请求 上下文,asp.net,azure,security,umbraco,azure-web-app-service,Asp.net,Azure,Security,Umbraco,Azure Web App Service,Umbraco CMS网站在Azure as应用程序服务上运行 定时发布 Umbraco的功能之一是允许在给定时间发布内容。发布功能对同一网站(或负载平衡环境中不同服务器但相同网站)进行HTTP调用 API调用url: IP安全 由于客户要求,对站点的访问仅限于给定的IP地址列表。此任务正在web.config中使用IP安全限制完成 <security> <requestFiltering> <requestLimits maxAllowedConten
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" />
</requestFiltering>
<ipSecurity allowUnlisted="false" denyAction="NotFound">
<!-- "clear" removes all upstream restrictions -->
<clear />
<!-- permit the loopback address -->
<add ipAddress="127.0.0.1" allowed="true" />
...
...
...
<!-- domain Name for Scheduled Publishing -->
<add allowed="true" domainName="sample-site-umbraco.azurewebsites.net"/>
</ipSecurity>
</security>
在我们的网站umbraco.com上
修正尝试
将domainName添加到允许的条目列表中
这个解决方案不起作用。电话仍被封锁
问题:
如何解决这个问题?是否有可以覆盖的功能 好的,我找到了解决办法。我想它会起作用的 我在stackoverflow上找到了它,它成功了:) 解决方案 解决方案是将所有出站IP地址添加到System.WebServer>Security>ipSecurity>[List]中 出站Ip地址是以逗号分隔的Ip列表。 您需要将它们全部添加到web.config的白名单中 缺点 我不确定出站IP列表是否是静态的,将来不会更改
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" />
</requestFiltering>
<ipSecurity allowUnlisted="false" denyAction="NotFound">
<!-- "clear" removes all upstream restrictions -->
<clear />
<!-- permit the loopback address -->
<add ipAddress="127.0.0.1" allowed="true" />
...
...
...
<!-- domain Name for Scheduled Publishing -->
<add allowed="true" domainName="sample-site-umbraco.azurewebsites.net"/>
</ipSecurity>
</security>
404 - NotFound
"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
<!-- domain Name for Scheduled Publishing -->
<add allowed="true" domainName="sample-site-umbraco.azurewebsites.net"/>