400 likes | 549 Views
Microsoft Internet Information Services 7.0 And Beyond. Agenda. Key highlights of the IIS7 platform Demos of extensions Summary Q&A. Internet Information Services 7.0 Key highlights. Modular and Extensible Integrated Pipeline Delegated management Diagnostic Capabilities
E N D
Agenda • Key highlights of the IIS7 platform • Demos of extensions • Summary • Q&A
Internet Information Services 7.0 Key highlights • Modular and Extensible • Integrated Pipeline • Delegated management • Diagnostic Capabilities • Improved Security
Internet Information Services 7.0 Modular and Extensible Architecture Server functionality is split into ~ 40 modules... Authentication Authentication NTLM Basic Anon Authorization Modules plug into a generic request pipeline… … ResolveCache Determine Handler CGI … Static File Modules extend server functionalitythrough a public module API. ExecuteHandler ISAPI … … UpdateCache Send Response Log Compress SendResponse
Internet Information Services 7.0 Integrated Pipeline Basic Two APP Pool Modes • Classic (runs as ISAPI) • Integrated Mode • .NET modules / handlers plug directly into pipeline • Process all requests • Full runtime fidelity • Use managed modules with native modules Anon Authentication Authorization ResolveCache aspnet_isapi.dll … Static File Authentication ExecuteHandler Forms Windows … … ISAPI ASPX Map Handler UpdateCache Trace SendResponse Compress … … Log
Internet Information Services 7.0 Delegated configuration • ApplicationHost.config • Administration.config • Server Wide Settings • Global Feature Delegation • IIS Manager Users Individual Site Changes Sites Server Changes “Global”
Internet Information Services 7.0 Delegated Management • One tool – configures both IIS and ASP.NET • Works for machine administrator and site owner • Remotes over HTTP, making it firewall friendly • Supports managed extensibility familiar tree view simplified tasks feature focused
Internet Information Services 7.0 Extensions Module API IIS 7 Extension ApplicationHost.config Administration.config Extensible Configuration Extensible Management
Sample extension: • Build an extension that puts a text watermark on all images served for a site • Provide a management interface to allow changing the watermark text
New IIS7 Extensions IIS7 Extensions • MANAGEMENT • Administration Pack • Database Manager • Remote Management • Powershell • REQUEST HANDLING • URL Rewriter • Application Request Routing • PUBLISHING • FTP • WebDAV • MEDIA INTEGRATION • Web Playlist • Bit rate throttling • DEPLOYMENT • Microsoft Web Deployment Tool • SECURITY • URL Scan
The Web Platform Installer • Single place to discover all tools and components • Automatically install selected tools and components • Automatically configure IIS7
The Microsoft Web Deployment Tool • Synchronize web applications • Package • Easily deploy • Migrate from IIS6 to IIS7
The Microsoft Web Deployment Tool • ES15: Deploying Web Applications with Microsoft Internet Information Services 7.0 and the Web Deployment Tool • Time and venue: 10/29 | 4:45 PM-6:00 PM | 408A
URL Rewrite Extension • Easy to use URLs • http://www.pdcpaintings.com/default/rohit/hills vs. http://www.pdcpaintings.com/default.aspx?artist=rohit&theme=hills • Search engine friendly URLs • Enforce http://www.mysite.com instead of http://mysite.com • Preventing hot-linking • Block unwanted search crawlers
Media Extensions • Optimize bandwidth costs • Sequence media content • Encode URLs
Application Request Routing • Load balance across on-premises servers • Highly available • Increase capacity
Application Request Routing (ARR)Key takeaways ARR Client Front end server (can be server core) Back end servers
IIS Release Strategy New scenarios IIS7 Extensions Tight customer feedback loop Active forum support for pre-releases CSS support for released extensions WS 2008 WS 2008 R2 The platform Extensions added to setup
Key chages to IIS in R2 New IIS Manager Modules ASP.NET on Server Core Integrated PowerShell Provider Configuration Logging & Tracing Integrated FTP and WebDAV Best Practices Analyzer
Summary • Highly extensible and customizable web platform • Rich tools to help with development and deployment • Improved diagnostics and troubleshooting • Easily extensible remote management • New scenarios enabled by freely downloadable extensions available at www.iis.net
Iis.NET: Home For IIS Community! • In-depth technical articles and samples • Connect with other IIS experts on blogs and forums • Free advice and assistance in forums • Download center with IIS solutions
Evals & Recordings Please fill out your evaluation for this session at: This session will be available as a recording at: www.microsoftpdc.com
Progressive Download Today • No bandwidth control with traditional HTTP downloads • Drop-off point in videos: • Microsoft.com ~ 40% • Typical video site < 20%
Web Platform InstallerHow does it work? XML handling Discovery Resolve dependencies Application Engine Execute msi/exe Handle errors Handle reboot Installation Engine http://www.microsoft.com/web/appdocs/WebProductList.xml Product Name Description Installer Location Dependencies Incompatibilities Discovery logic
The URL rewrite rule in web.config <rewrite> <rules> <rule name="RewriteUserFriendlyURL1" enabled="true" stopProcessing="true"> <match url="^([^/]+)/([^/]+)/([^/]+)/?$" /> <action type="Rewrite“ url="{R:1}.aspx?artist={R:2}&theme={R:3}" /> </rule> </rules> • </rewrite>
Microsoft Web Deployment Tool Request metadata Synchronize site request Request for changed data MS Deploy ENGINE MS Deploy ENGINE Compute differences = Config + Content metadata Query site metadata APPHOST PROVIDER CONTENT PROVIDER AppHost CONTENT PROVIDER APPHOST PROVIDER Content AppHost Content AppHost AppHost ModifiedContent ModifiedContent Content Content SOURCE SERVER TARGET SERVER
© 2008 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 Playlists extensionHow does it work? Playlist – abc.isx Ads.wmv Movie.wmv ------- ------- ------- ____ ____ ____ Get abc.isx abc.asx Get ads.wmv ads.wmv Get movie.wmv movie.wmv
Web Playlists extensionHow does it work? Playlist – abc.isx Ads.wmv Movie.wmv ------- ------- ------- ____ ____ ____ Get abc.isx abc.asx Get movie.wmv FAIL! Get movie.wmv FAIL! Any requests from a different client, or attempts to skip ads, are failed
Playlists Examples Client side ASX Web Playlists ASX
URL rewrite extensionHow does it work? • <globalRules> - apply to the entire server • <rules> - apply to a specific location • Subsequent pipeline modules work with rewritten URL • Handler is resolved based on rewritten URL
Application Request Routing extensionHow does it work? Begin URL Rewrite ARR Pipeline Add Global rewrite rule Subscribe to Begin Request Inspect and change URL Set var ‘URL’ = Server Farm name Subscribe to Map Request Handler If var ‘URL’ == Server Farm name Load balance SetURL Send request Receive response Send response Back end servers End
Putting it all together IIS7 Extensions Tools URL rewrite ARR Web Playlist Bit-rate Throttling Web Platform Installer WS 2008 WS 2008 R2 IIS core IIS core + extensions Web Deploy
How to get original URL in your app? • ASP & ASP.NET: • PHP • or Request.ServerVariables[“HTTP_X_ORIGINAL_URL”]; $_SERVER[`REQUEST_URI`]; $_SERVER[`HTTP_X_ORIGINAL_URL`];