【发布时间】:2013-08-28 06:04:11
【问题描述】:
在我们的 sitecore 6.6.0 (rev. 130404) 项目中,我们在根文件夹中有一个 sitemap.xml 文件。但是,由于 web.config 中的配置,无法从浏览器访问该文件。
<add path="*.xml" verb="*" type="System.Web.HttpForbiddenHandler" name="xml (integrated)" preCondition="integratedMode"/>
此配置已按照sitecore security hardening guide 中的说明添加。
如果我们删除此配置,用户就可以访问 sitecore 文件夹中的任何 .xml 文件。如何只允许访问sitemap.xml而不允许访问网站中的其他xml文件?
(我们在 IIS7 集成模式下运行)
【问题讨论】:
标签: xml sitecore sitecore6 sitemap.xml httpforbiddenhandler