1 / 19

開發人員需要懂的 IIS 7 秘技

開發人員需要懂的 IIS 7 秘技. 張書源 Microsoft MVP MCT 趨勢 科技 技術經理 網酷 科技 資深顧問 集英信 誠 資深顧問. 大綱. 使用 Web Platform Installer 擴充 IIS 7 的功能 安裝 應用程式 安裝 產品擴充功能 使用 IIS 7 擴充功能 強化 ASP.NET 執行 環境 URL Rewrite URL 授權 規則 組態設定 Web 部署. 網際網路應用程式生態環境. T. 私有雲的執行 環境 -- IIS 7. Web Platform Installer.

alida
Download Presentation

開發人員需要懂的 IIS 7 秘技

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 開發人員需要懂的IIS 7 秘技 張書源 Microsoft MVP MCT 趨勢科技技術經理 網酷科技資深顧問 集英信誠資深顧問

  2. 大綱 • 使用Web Platform Installer擴充IIS7的功能 • 安裝應用程式 • 安裝產品擴充功能 • 使用IIS 7擴充功能強化ASP.NET執行環境 • URLRewrite • URL 授權規則 • 組態設定 • Web部署

  3. 網際網路應用程式生態環境 T

  4. 私有雲的執行環境 -- IIS 7

  5. Web Platform Installer • 快速建立Web應用程式環境

  6. Web Platform Installer工具介紹 demo

  7. URLRewrite 工具 • 重寫IIS所接收到的URL要求 • 簡短網址 • 搜尋引擎最佳化 • 定義重寫規則 • 比對URL • 標頭(Header) • 伺服器變數

  8. 使用URLRewrite 工具設定重寫要求 demo

  9. 設定URL授權規則 • 限制應用程式URL存取權限 • ASP.NET只能針對Managed Code設定授權 (例如:.aspx、.asmx) • IIS URL授權規則可以套用到所有的文件 (例如:文字檔) • 轉移環境時不需要重新設定 • 所有設定會自動寫入Web.Config

  10. 設定URL授權規則

  11. IP位置及網域限制 • 限制可以存取網站內容的 • IP 位址 • IP 位址範圍 • 網域名稱 • 動態IP限制規則 • 根據用戶端要求的數量,限制存取 • 阻絕對網站或是服務的DOS攻擊

  12. 設定IP存取限制

  13. ASP.NET應用程式組態 (1) • 使用IIS管理員維護組態

  14. ASP.NET 應用程式組態 (2) • 調整過的組態設定會自動更新到web.config組態檔 • <system.web> • ASP.NET執行環境組態區段 • <system.webServer> • IIS執行環境組態區段

  15. 利用IIS管理工具維護ASP.NET應用程式組態

  16. 更簡單的應用程式部署方式 • Web Deploy v2.0 • Web應用程式自動封裝與部署 • 支援VS 2010開發工具 • 可發佈網站內容、組態設定、資料庫與其他相依組件 • 可以透過Web PI 工具安裝 • 整合IIS管理工具

  17. Web Content, IIS Settings, Databases, Registry, etc Web.Debug.Config, . Web.Testing.Config, Web.Release.Config Environment Specific Configurations Consolidated Web Deployment Site/Server Snapshots & Migration Reusable & Simple Web Packages One Click Publish with Differential Sync VS 2010 + Web Deploy Web Farm Deployment Team Build Integration Extensible & Customizable Update workflow to get nightly deployments MsBuild based Web Publishing Pipeline (WPP)

  18. 利用Web Deploy部署ASP.NET應用程式 demo

  19. Q &A

More Related