我正在尝试为我的Azure web应用服务配置web.config。我想将ftp访问限制为只访问特定的URL。但是当我添加标签的时候,它给了我一个错误-
Parser Error Message: Unrecognized configuration section system.ftpServer.你能告诉我哪里出错了吗?提前感谢
我的Web.config文件-
<?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>发布于 2016-03-08 11:51:01
某些版本的IIS不支持'system.ftpServer‘配置,或者您需要手动下载ftp模块。您可以引用文章https://www.iis.net/configreference/system.ftpserver并检查您的IIS版本。
https://stackoverflow.com/questions/35848665
复制相似问题