尝试保存编辑时,Kudu Debug Console访问被拒绝错误

时间:2015-11-18 04:09:14

标签: azure iis

尝试将编辑内容保存到rootweb.config时,我收到以下消息:

  

无法写入本地资源'D:\ local \ Config \ rootweb.config'到期   错误'访问路径'D:\ local \ Config \ rootweb.config'是   拒绝。'。

我正在尝试在上传我的PHP项目后将以下内容添加到文件的默认配置中(我的PHP项目不包含web.config文件):

<system.webServer>
    <security>
        <ipSecurity allowUnlisted="false" denyAction="NotFound">
            <add allowed="true" ipAddress="<ip-address>" />
            <!--add allowed="true" ipAddress="<ip-address>" /-->                        
        </ipSecurity>
    </security>
</system.webServer>

这个文件应该是可编辑的,还是我需要包含我自己的web.config?

1 个答案:

答案 0 :(得分:1)

基于另一个Stack Overflow帖子,我相信你只想制作一个web.config并把它放在你的php应用程序的文件夹中。您无法编辑您尝试访问的文件夹中的配置。您可以通过带有转换的站点扩展来修改applicationHost.config。我有这方面的经验。

Windows Azure and web.config doesn't run with PHP web site

关于网站扩展: https://github.com/projectkudu/kudu/wiki/Azure-Site-Extensions

相关问题