gpt4 book ai didi

iis - 为什么相同的文件会被复制到 Windows Azure WebRole 中的/Approot 和/Siteroot 中?

转载 作者:行者123 更新时间:2023-12-04 04:26:50 24 4
gpt4 key购买 nike

我发现approot和sitesroot用于:

\Approot - The customer’s code, aspx pages, DLLs, etc. \Sitesroot\ – This is the folder where the full IIS site is run from. When the role is deployed, the files from \Approot are copied to this \Sitesroot folder and then IIS will be configured to run the site from \Sitesroot. Any temporary test changes to the role (web.config changes, new DLLs, etc) should be placed here.

我想知道为什么有两个独立的文件夹,因为它们包含相同的文件?

最佳答案

  • AppRoot 在角色启动时使用,并且应包含一个来自 RoleEntryPoint 的派生类。 。此内容来自 Web 角色配置的站点,由 WaIISHost 工作进程使用。
  • SiteRoot 包含来自节点 Sites 的网站在 .csdef 文件中并在 IIS 中配置。

关于iis - 为什么相同的文件会被复制到 Windows Azure WebRole 中的/Approot 和/Siteroot 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8520933/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com