【问题标题】:How do i configure IIS7 for a website rather than a web application to be viewed through localhost?如何为网站配置 IIS7 而不是通过 localhost 查看的 Web 应用程序?
【发布时间】:2011-03-08 18:59:59
【问题描述】:

我想通过 localhost 查看我的“网站”。我不想单击 Visual Studios 中的播放按钮。我知道使用“Web 应用程序”,我需要将发布的文件放入特定目录(通常为 C:\inetpub\wwwroot\),然后通过 Localhost 查看应用程序。

但是,我相信“网站”会有所不同。这是怎么做到的?

【问题讨论】:

    标签: iis-7


    【解决方案1】:

    就像 Web 应用程序一样,您可以将您的网站放在 c:\inetpub\wwwroot\ 下的文件夹中,然后浏览到您网站的 URL。 (例如,//localhost/mysite)

    您也可以打开 IIS 管理器,右键单击您的网站文件夹,选择“管理应用程序”,然后单击“浏览”。您的网站将在您的默认浏览器中打开。

    【讨论】:

      猜你喜欢
      • 2015-05-25
      • 2020-01-13
      • 1970-01-01
      • 2010-10-28
      • 1970-01-01
      • 2016-10-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多