David Lowe Senior Product Planner Microsoft Corporation SVR304.

52
Extend Your Web Server: What's New in IIS and the Microsoft Web Platform David Lowe Senior Product Planner Microsoft Corporation

Transcript of David Lowe Senior Product Planner Microsoft Corporation SVR304.

Extend Your Web Server:What's New in IIS and the Microsoft Web Platform David Lowe

Senior Product PlannerMicrosoft CorporationSVR304

Session Objectives And Takeaways

Session Objective(s): Understand changes and new features in IIS 7.5 in Windows Server 2008 R2Learn how IIS and IIS Extensions provide a solid foundation for the Microsoft Web Platform

Web is a key pillar in Windows Server 2008 R2 with IIS 7.5 and .NET on Server CoreIIS Extensions deliver additional value to the Microsoft Web Platform for administrators, developers and hosters

Agenda

IIS and the Microsoft Web PlatformIIS 7.5 Enhancements in R2IIS and ASP.NET on Server Core in R2Remotely Managing IIS in R2IIS Extensions for Development and Deployment

The Microsoft Web Platform

www.iis.netIIS.net Community

www.asp.netASP.net Community

Web App Gallery

Web Platform Installer

Web Platform Installer

www.microsoft.com/web

Web Platform Installer V2.0Demo

More Reliable More Control More Secure More Choice

Increased availability through dynamic request handling,

improved caching, and powerful troubleshooting tools

Simplified, distributed management through set of

customizable administration tools with easier application

deployment for developers

Improved security and server protection through reduced server footprint, enhanced

publishing, and request filtering capabilities

Flexible platform with enhanced support for multiple application

development platforms and media content delivery

Scalable Web Infrastructure

Dynamic Caching & Compression

Powerful Diagnostic Tools

Centralized Web Management

Delegated Remote Management

Easy Application & Server Deployment

Enhanced Server Protection

Secure Content Publishing

Improved Access Protection

Included ASP.NET & PHP Support

Modular & Extensible Web Server

Integrated Media Platform

IIS Extensions

Enhancing IIS Feature Set

IIS 7.0 Platform IIS 7.5 Platform

IIS Extensions

Extensions Add Further Functionality

Extensions Add Further Functionality

Some ExtensionsIntegrated

IIS 7.5 & New Features in R2

ASP.NET on Server Core

PowerShell Module & Cmdlets

Integrated FTP and WebDAV

Integrated Admin Pack Modules

Configuration Logging & Tracing

Best Practices Analyzer

.NET in Server Core in R2

.NET Framework in Server CoreSubset of .NET 2.0Subset of .NET 3.0

Windows Communication Framework (WCF)Windows Workflow Framework (WF)

Subset of .NET 3.5WF additions from 3.5LINQ

Subset of ASP.NET support for IISWindows PowerShell supportWoW64 for 32-bit support (R2 is 64-bit only!)

Windows Server 2008 R2Server Core Architecture

Server Core, Server Roles and Optional Features

Server CoreSecurity, TCP/IP, File Systems, RPC,plus other Core Server Sub-Systems

DNS DHCP FileAD

ServerWith .NetFx, Shell,

Tools, etc.

TS NAS ADFS WDS Etc…

Server, Server Roles (for example only)

ADLDS

MediaServer IIS 7 Hyper-V

Print

ASP.NETPS.NET3/3.5

.NET2.0

WoW64

GUI, Shell, IE, Media, Mail, Etc.

CLR 2.0

ASP.NETWPF

.NET Framework

LINQ

CLR 3.0Additions

CLR 3.5Additions

WPFWCF WF

in Server Core

Install ASP.NET on Server Core(New DISM Command)

dism /online /enable-feature /featurename:IIS-WebServerRole /featurename:IIS-WebServer

dism /online /enable-feature /featurename: IIS-CommonHttpFeatures /featurename:IIS-DefaultDocument /featurename:IIS-Security /featurename:IIS-RequestFiltering

dism /online /enable-feature /featurename: IIS-ApplicationDevelopment /featurename:IIS-ISAPIFilter /featurename:IIS-ISAPIExtensions /featurename:IIS-NetFxExtensibility

dism /online /enable-feature /featurename: IIS-ASPNET

ASP.NET on Server CoreDemo

Remote Management of IIS

Install the IIS Management Servicedism /online /enable-feature /featurename:IIS-ManagementService

Enable Remote ManagementHKLM\Software\Microsoft\WebManagement\ServerSet EnableRemoteManagement to 1

Start the Management Servicenet start wmsvc

Service is not set to start automaticallysc config wmsvc start= auto

Remote Management of Server CoreDemo

IIS 7.0 / 7.5 Extensions

New functionality for IIS enabled by modular and extensible architectureNew modules for IIS Manager built using public Microsoft.Web.Administration APIsIIS team develops key Extensions for IIS

Core runtimeWeb application lifecycleMedia integration

Official IIS Extensions are free, fully supported and available in four languages (FR, DE, ES, JA)

IIS Extensions AvailableExtension Beta RC RTW

IIS FTP Service 7.5 (for IIS 7.0) IIS WebDAV 7.5 (for IIS 7.0) IIS Manager for Remote Administration IIS Administration Pack (for IIS 7.0) IIS Media Services IIS Web Deployment Tool IIS Database Manager IIS Advanced Logging IIS URL Rewriter (2.0) (1.1)IIS Application Request Routing (2.0) (1.0)UrlScan 3.1 (for IIS 5.1 / IIS 6.0) Windows PowerShell Snap-In (for IIS 7.0) Windows Cache Extension for PHP IIS Search Engine Optimization Toolkit IIS Application Warm-Up IIS Dynamic IP Restrictions

www.iis.net/extensions

IIS Extensions Integrated in R2

Windows PowerShell Snap-In for IISImplemented as Web Administration Module

FTP Service 7.5WebDAV 7.5IIS Administration Pack Modules

FastCGI ConfigurationRequest Filtering ConfigurationConfiguration EditorASP.NET Authorization and Custom Errors

BenefitsPublish securely and easily from IIS Manager via Internet standardsSimplify hosting through integrated Web and FTP site managementImprove security and auditing through new authentication providers and enhanced logging

FeaturesIntegrated with IIS ManagerSupport for FTP over SSLHost FTP and Web content from same site by adding FTP binding Support for hosting multiple FTP sites on same IP addressImproved virtual directory supportImproved user isolation through per-user virtual directoriesImproved logging support Detailed error messages for end users and event tracing for server-side troubleshooting

FTP Service 7.5Enables Web authors to publish content more easily and securely, and offers improved integration and management for hosters and administrators

BenefitsPublish securely and easily from IIS ManagerConfigure publishing on a per-site levelImprove security and auditing through custom authorization support

FeaturesIntegrated with IIS ManagerSupport for HTTP over SSLConfiguration can be done at the site-level rather than at the server-level as in IIS 6.0Per-URL authoring rules, allowing administrators to specify custom WebDAV security settings on a per-URL basis

WebDAV 7.5Enables Web authors to publish content more easily and securely, and offers better integration, configuration and authorization features

BenefitsManage your configuration files with Configuration EditorManage existing features with IIS Manager UI Extensions

FeaturesGenerate code to automate tasksScoped searches of the configuration systemView key statistics about websitesDefault reports for administrators or delegated managementCreate custom reportsFastCGI module allows management of FastCGI settingsASP.NET modules allow management of authorization and custom errors settingsHTTP Request Filtering module

Administration Pack ModulesA collection of IIS modules that enhance the functionality of IIS Manager to help administer IIS Web servers

IIS Extensions Integrated in R2Demo

BenefitsSimplify the administration of your Web site by scripting tasksExecute repetitive administrative tasks across serversImprove your decision making by consolidating metrics from your servers in real-time

FeaturesSeamless integration into the PowerShell environmentLow-level and task-based cmdlets specific to IIS that allows to:

Add and change configuration properties of Web-Sites, Web Applications, Virtual Directories and Application PoolsExecute advanced configuration tasksQuery run-time data

Windows PowerShell ModuleAllows IT professionals and hosters to easily automate complex IIS 7.5 administrative tasks effectively increasing the productivity of administrators

PowerShell Web Administration

To use Web Administration moduleimport-module WebAdministrationcd IIS:\

IIS cmdletsHigh-level and low-level cmdlets for administration and modifying configurationBest Practice Analyzer cmdletsStart /w ocsetup BestPractices-PSH-Cmdletsimport-module BestPractices

Cmdlets are:get-bparesultinvoke-bpamodelset-bparesult

Windows PowerShell:Web Administration on Server Core

Demo

PowerShell Scenarios for IIS(1)Add / remove / change:

ApplicationsVirtual directoriesSitesApplication pools

Add sites based on templateCopy config and content of existing site / vdir to other site / vdirConfigure SSLFind log file directory for siteChange authentication settings ofsite / app / vdir

Set IP restrictions on a siteRecycle:

Application poolsIIS (IISRESET)

Backup IIS configurationActivate sites (start/stop)Add bindings to existing web-siteConvert folders to applications / vdirsChange AppPool account identities and passwordsUnload web appsConfigure redirection

PowerShell Scenarios for IIS(2)Add / remove / reorder default documentChange port number / IP address of a site bindingChange physical path of a siteEdit list of allowed Web Service ExtensionsAdd new custom error pageRegister new:

ISAPI filter / extensionNative module / handlerManaged module / handler (integrated pipeline/ISAPI mode)

Add / remove / change MIME MapMonitor:

Site statusExecuting requests

Test site is up and runningFind all stopped sitesFind configuration setting Move log filesCreate new AppPool with recycling settingsLock section or elementChange Application Pool of an application

Running IIS Extensions on R2

IIS Web Deployment ToolCan be run on full and Server Core installations

IIS URL RewriterIIS Application Request RoutingIIS Media ServicesIIS Search Engine Optimization Toolkit

BenefitsSynchronize your server farm efficientlyPackage, archive and deploy Web applications more easilyMigrate Web applications between IIS 6.0 / 7.0 / 7.5 with ease

FeaturesIntegrated with IIS Manager and Visual Studio 2010Ability to migrate the entire Web server, Web application or Web siteSynchronizes only changed dataWarns of missing dependencies during synchronizationAutomatically gathers content, configuration, certificates, Registry Keys, ASP.NET configurationPackages Web app or entire siteSupports both live servers and zipped packages as source or target appsAdministrative privileges are not required to deploy Web applications

Web Deployment ToolSimplify the migration, management and deployment of IIS Web Servers, Web applications and Web sites. It can be used to package, synchronize IIS sites including content, configuration certificates and databases.

Web Deployment Tooldemo

BenefitsEasily define rules matching URLs and HTTP headers to generate more friendly and consistent URLsProtect content and assets from unauthorized linking and scanningIntegrate with existing IIS features for management and performance

FeaturesIntegrated user interfaceRegular expression and wildcard pattern matchingGlobal and distributed rulesAccess to server variables and HTTP headersVarious rule actions including redirect and request abortSupport for IIS kernel mode and user mode output cachingLower case conversion functionRewrite maps and rule templatesImport Apache mod_rewrite rules

IIS URL RewriterEnables server administrators to create powerful rules to implement URLs that are easier for users to remember and easier for search engines to find.

http://www.site.com/photos.aspx?user=ben&id=5

http://www.site.com/photos/ben/5/

BenefitsBalance loads across servers to maximize resource utilizationManage and monitor multiple servers and Web farms more easily through IIS ManagerCreate affinity for server requests by client or host name

FeaturesRules-based routing engine examines HTTP requestsLoad balancing algorithms pick appropriate content server Health monitoring to determine the health of content servers Client affinity to direct all requests from a client to a specific server Host name affinity to streamline administration for content servers Management of server groups through IIS Manager Supports Failed Request Tracing

IIS Application Request RoutingIncreases application and server availability by using load-balancing algorithms to implement proxy-based routing for incoming HTTP requests

V2 RC Versions Now Available

IIS URL Rewriter V2 RCRules-based response rewriting engine.Rewriting within the content of specific HTML tags.Pre-conditions for outbound rules. Setting of server variables and HTTP headers. Tracking capture groups across rule conditions. Logging of rewritten URLs.

IIS Application Request Routing V2 RCEnhance ARR v1.0 scenarios with disk cache. Use ARR as a cache proxy as an edge cache.

BenefitsImprove the volume and traffic to your site from search enginesControl how search engines access and display Web contentInform search engines about locations available for indexing

FeaturesSite Analysis Features

Fully-featured crawl engineView detailed summaries of analysisRich Query Builder interfaceDetailed route analysis

Robots Exclusion FeaturesRobots display in friendly UISupport for filtering, grouping and sortingAbility to add sitemap locations

Sitemap and Sitemap Index FeaturesDisplay of sitemaps in simple UI

Ability to add / remove /edit index files and new URLs in physical / logical views

Search Engine OptimizationHelps Web developers, hosting providers, and Web server administrators improve Web site relevance in search results by making site content more search engine-friendly. Use the Site Analysis module to see recommendations for optimization.

Search Engine Optimization Toolkitdemo

Additional IIS Enhancements

IIS Application Warm-UpCLR Settings per Application PoolConfiguration Logging and TracingNew Application Pool Identities and Managed Service AccountsBest Practices Analyzer

IIS Application Warm-UpIIS process model is request drivenTo instantiate critical infrastructure and be more responsive certain applications need to be pre-loadedApplication preload feature in IIS 7.5 allows applications to automatically start without a requestRequires IIS Application Warm-Up extensionSee article on learn.iis.net for full instructions

CLR Settings per App Pool

ASP.NET settings stored in global ASPNET.configCan now create custom ASPNET.config files

Specify location in applicationHost.configLocal settings honored at runtime – can be UNC pathE.g. set maximum number of threads, maximum number of requests or garbage collection settings

Add the following in applicationHost.config file:<applicationPools>

<add name="DefaultAppPool" CLRConfigFile="c:\myConfig\CLRConfigFile.txt" />

<add name="Classic .NET AppPool" managedPipelineMode="Classic" /><applicationPools>

Configuration Logging Tracing

IIS 7.0 does not include any built-in tracing mechanism for configuration changesIIS in Windows Server 2008 R2 provides:

Read / write auditing of configuration system Logging of events unrelated to Reads / Writes

Logs kept under Applications and ServicesApplications and Services Logs > Microsoft > Windows > IIS-Configuration

Four logs:Administrative, Analytic, Debug, WriteAuditing

By default, all logging is disabled

Application Pool Identities

All application pools run as NetworkServiceIIS in R2 (and backported to IIS 7.0) allows use of new “AppPool” identityIIS in R2 allows domain accounts for running services without management of passwords – Managed Service AccountsIdentity type in IIS in R2 is set by default to 4 (App Pool Identity) versus 2 (Network Service) – NOT in IIS 7.0 / WS08

Best Practices Analyzer

Seven criteria are checked for compliance1-7

Best Practices Analyzerdemo

Reduced cost for Web scenarios

Dedicated Web and DNS server

Simplified licensing

Supports 4 processors and 32 GB RAM (64 bit)

Web edition of Windows Server 2008 R2Will include Web Server (IIS) and DNS rolesServer Core installation supports ASP.NET

Optimized for Internet-facing Web-servingenvironments not requiring authenticationCan run Windows Media Services 2008, Windows SharePoint Services,Office SharePoint Server and SQL ServerDoes not require purchase of Client AccessLicenses (CALs) or External Connector

Summary

IIS is enhanced as IIS 7.5 in R2Mostly integration of IIS Extensions.NET on Server Core is biggest changeIIS team continues to invest in Extensions

New Online Resources at MSCOM and IIS.net

IIS 7.0 Content Articles, Walkthroughs, Blogs

Downloads, Webcasts, Forums

Customer Perspectives,Technical Resources, Links to Community Resources

question & answer

www.microsoft.com/teched

Sessions On-Demand & Community

http://microsoft.com/technet

Resources for IT Professionals

http://microsoft.com/msdn

Resources for Developers

www.microsoft.com/learning

Microsoft Certification & Training Resources

Resources

Related ContentBreakout Sessions (session codes and titles)WIA 201: Microsoft Web Platform OverviewWIA 203: Streaming with IIS and Windows Media ServicesWIA 302: Architecting a Scalable Web Hosting Platform with IIS

Hands-on Labs (session codes and titles)WUX07-HOL: Diagnosing and Troubleshooting Web Applications in IIS 7.0WUX11-HOL: Scaling Out Your Web Infrastructure by Using Application Request RoutingWSV15-HOL: Deploying and Managing ASP.NET Using IIS 7.5 on Server Core

Complete an evaluation on CommNet and enter to win an Xbox 360 Elite!

© 2009 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.