首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法识别的azure配置节system.ftpServer

问无法识别的azure配置节system.ftpServer
EN

Stack Overflow用户
提问于 2016-03-08 00:16:53
回答 1查看 164关注 0票数 0

我正在尝试为我的Azure web应用服务配置web.config。我想将ftp访问限制为只访问特定的URL。但是当我添加标签的时候,它给了我一个错误-

代码语言:javascript
复制
Parser Error Message: Unrecognized configuration section system.ftpServer.

你能告诉我哪里出错了吗?提前感谢

我的Web.config文件-

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
    <customErrors mode="Off" />
</system.web>

  <system.webServer>
    <httpErrors errorMode="Detailed" />
  </system.webServer>

  <location path="<<FTP hostname>>">

    <system.ftpServer>
     <security>
      <authorization>
        <add accessType="Allow" roles="administrators" permissions="Read, Write" />
      </authorization>
      <requestFiltering>
        <fileExtensions allowUnlisted="true">
          <add fileExtension=".exe" allowed="false" />
          <add fileExtension=".bat" allowed="false" />
          <add fileExtension=".cmd" allowed="false" />
        </fileExtensions>
        <requestLimits maxAllowedContentLength="1000000" maxUrl="1024" />
        <hiddenSegments>
          <add segment="_vti_bin" />
        </hiddenSegments>
      </requestFiltering>
      <ipSecurity enableReverseDns="false" allowUnlisted="true">
        <add ipAddress="127.0.0.1" allowed="true" />
        <add ipAddress="169.254.0.0" subnetMask="255.255.0.0" allowed="false" />
      </ipSecurity>
    </security>
  </system.ftpServer>

  </location>
EN

回答 1

Stack Overflow用户

发布于 2016-03-08 11:51:01

某些版本的IIS不支持'system.ftpServer‘配置,或者您需要手动下载ftp模块。您可以引用文章https://www.iis.net/configreference/system.ftpserver并检查您的IIS版本。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35848665

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档