張書源 Microsoft MVP MCT 趨勢科技 技術經理 網酷科技 資深顧問 集英信誠 資深顧問 開發人員需要懂的 IIS 7 秘技 張書源 Microsoft MVP MCT 趨勢科技 技術經理 網酷科技 資深顧問 集英信誠 資深顧問
大綱 使用Web Platform Installer擴充IIS 7的功能 使用IIS 7擴充功能強化ASP.NET執行環境 安裝應用程式 安裝產品擴充功能 使用IIS 7擴充功能強化ASP.NET執行環境 URL Rewrite URL 授權規則 組態設定 Web部署
網際網路應用程式生態環境 T
私有雲的執行環境 -- IIS 7
Web Platform Installer
Web Platform Installer 工具介紹 3/18/2017 9:11 AM Web Platform Installer 工具介紹 demo © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
URL Rewrite 工具 重寫IIS所接收到的URL要求 定義重寫規則 簡短網址 搜尋引擎最佳化 比對URL 標頭(Header) 伺服器變數
使用URL Rewrite 工具 設定重寫要求 3/18/2017 9:11 AM 使用URL Rewrite 工具 設定重寫要求 demo © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
設定URL授權規則 限制應用程式URL存取權限 轉移環境時不需要重新設定 ASP.NET只能針對Managed Code設定授權 (例如:.aspx、.asmx) IIS URL授權規則可以套用到所有的文件 (例如:文字檔) 轉移環境時不需要重新設定 所有設定會自動寫入Web.Config
設定URL授權規則
IP位置及網域限制 限制可以存取網站內容的 動態IP限制規則 IP 位址 IP 位址範圍 網域名稱 根據用戶端要求的數量,限制存取 阻絕對網站或是服務的DOS攻擊
設定IP存取限制
ASP.NET 應用程式組態 (1) 使用IIS管理員維護組態
ASP.NET 應用程式組態 (2) 調整過的組態設定會自動更新到web.config組態檔 <system.web> <system.webServer> IIS 執行環境組態區段
利用IIS管理工具維護 ASP.NET應用程式組態
更簡單的應用程式部署方式 Web Deploy v2.0 可以透過Web PI 工具安裝 Web應用程式自動封裝與部署 支援VS 2010開發工具 可發佈網站內容、組態設定、資料庫與其他相依組件 可以透過Web PI 工具安裝 整合IIS管理工具
VS 2010 + Web Deploy Consolidated Web Deployment 3/18/2017 9:11 AM Web Content, IIS Settings, Databases, Registry, etc Web.Debug.Config, . Web.Testing.Config, Web.Release.Config Consolidated Web Deployment Environment Specific Configurations Site/Server Snapshots & Migration Reusable & Simple Web Packages VS 2010 + Web Deploy Web Farm Deployment Team Build Integration Extensible & Customizable One Click Publish with Differential Sync Update workflow to get nightly deployments MsBuild based Web Publishing Pipeline (WPP) ©2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
利用Web Deploy部署 ASP.NET應用程式 3/18/2017 9:11 AM 利用Web Deploy部署 ASP.NET應用程式 demo © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
更簡單的應用程式部署方式 Web Deploy v2.0 可以透過Web PI 工具安裝 Web應用程式自動封裝與部署 支援VS 2010開發工具 可發佈網站內容、組態設定、資料庫與其他相依組件 可以透過Web PI 工具安裝 整合IIS管理工具
3/18/2017 9:11 AM IIS Express demo © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Q & A