SlideShare une entreprise Scribd logo
1  sur  44
IIS 7: The Administrator’s Guide Alexis Eller Program Manager Microsoft Corporation
Scripting… WMI  C#, VB.NET… Microsoft.Web.Administration Command Line… appcmd Server Modules  ASP.NET on IIS7 Centralization Detailed Errors Failed Request Tracing IIS Manager Deploy... Manage... Troubleshoot...
IIS6 Request Processing Send Response Log Compress NTLM Basic Determine  Handler CGI Static File Authentication Anon Monolithic implementation Install  all or nothing … Extend server functionality only through  ISAPI … ASP.NET PHP ISAPI … … Deploy...
IIS7 Request Processing Send Response Log Compress NTLM Basic Determine  Handler CGI Static File ISAPI Authentication Anon SendResponse Authentication Authorization ResolveCache ExecuteHandler UpdateCache … … Server functionality is split into ~ 40  modules ... Modules plug into a generic request pipeline… Modules  extend server functionality  through a public module API. … … Deploy...
Many, Many Modules ,[object Object],[object Object],[object Object],[object Object],[object Object],Deploy...
Installing IIS7 Deploy...
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],TIP Deploy...
IIS6 ASP.NET Integration ,[object Object],[object Object],[object Object],Send Response Log Compress NTLM Basic Determine  Handler CGI Static File ISAPI Authentication Anon … … Deploy... Authentication Forms Windows Map Handler ASPX Trace … … … aspnet_isapi.dll
IIS7 ASP.NET Integration ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Log Compress Basic Static File ISAPI Anon SendResponse Authentication Authorization ResolveCache ExecuteHandler UpdateCache … … Authentication Forms Windows Map Handler ASPX Trace … … … aspnet_isapi.dll Deploy...
Migrating to Integrated ASP.NET Deploy...
Replicate Content and Config ,[object Object],[object Object],[object Object],[object Object],[object Object],Deploy...
Centralize Content and Config ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Deploy...
Configuration moves to .config files… ,[object Object],[object Object],[object Object],[object Object],Manage...
Configuration Layout root configuration files machine.config root web.config applicationHost.config web.config .NET  Framework  ASP.NET IIS IIS +  ASP.NET +  .NET Framework web.config files indowsicrosoft.NETramework2.0.50727onfigeb.config indowsystem32netsrvpplicationHost.config indowsicrosoft.NETramework2.0.50727onfigachine.config Inheritance… Manage...
Configuration Delegation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Manage...
[object Object],[object Object],[object Object],TIP Manage...
Compatibility:  ABO Mapper ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],applicationHost.config IISADMIN ABOMapper IIS6  ADSI Script Manage...
Management Tools ,[object Object],[object Object],[object Object],[object Object],[object Object],GUI Command Line Script Managed Code IIS Manager appcmd WMI (rootebAdministration) Microsoft.Web.Administration Manage...
IIS Manager ,[object Object],[object Object],[object Object],[object Object],Manage...
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],TIP Manage...
Appcmd – Listing and Filtering C:gt; appcmd list sites SITE "Default Web Site" (id:1,bindings:HTTP/*:80:,state:Started) SITE "Site1" (id:2,bindings:http/*:81:,state:Started) SITE "Site2" (id:3,bindings:http/*:82:,state:Stopped)   C:gt; appcmd list requests REQUEST "fb0000008000000e" (url:GET /wait.aspx?time=10000,time:4276 msec,client:localhost)  C:gt; appcmd list requests /apppool.name:DefaultAppPool C:gt; appcmd list requests /wp.name:3567 C:gt; appcmd list requests /site.id:1  C:gt; C:gt; Filter results by application pool, worker process, or site C:gt; Manage...
appcmd Manage...
Scripting: IIS6 WMI Provider Set   oIIS = GetObject("winmgmts:rooticrosoftIISv2")  ' Create binding for new site Set   oBinding = oIIS.Get("ServerBinding").SpawnInstance_ oBinding.IP = "" oBinding.Port = "80" oBinding.Hostname = "www.site.com" ' Create site and extract site name from return value Set   oService = oIIS.Get("IIsWebService.Name='W3SVC'") strSiteName = oService. CreateNewSite ("NewSite",   array (oBinding), "C:netpubwwroot") Set   objPath = CreateObject("WbemScripting.SWbemObjectPath")  objPath.Path = strSiteName strSitePath = objPath.Keys.Item("")   Set   oSite = oIIS.Get("IIsWebServer.Name='" & strSitePath & "'") oSite.Start ' Create the vdir for our application Set   oVDirSetting = oIIS.Get("IIsWebVirtualDirSetting"). SpawnInstance_   oVDirSetting.Name = strSitePath & "/ROOT/bar"  oVDirSetting.Path = "C:netpubar"  oVDirSetting.Put_ ' Make the VDir an application Set   oVDir = oIIS.Get("IIsWebVirtualDir.Name='" & strSitePath & "/ROOT/bar'") oVDir. AppCreate2  1   Create Site Create Virtual Directory Create Application NOT CONSISTENT Manage...
Scripting: new WMI Provider Set   oService = GetObject("winmgmts:rootebAdministration") ' Create binding for site Set   oBinding = oService.Get("BindingElement").SpawnInstance_ oBinding.BindingInformation = "*:80:www.site.com" oBinding.Protocol = "http" ' Create site  oService.Get("Site").Create _ "NewSite",   array (oBinding), "C:netpubwwroot" ' Create application  oService.Get("Application").Create _ "/foo", "NewSite", "C:netpubwwrootoo" Static Create methods CONSISTENT Manage...
WMI – Unloading AppDomains   …through script   …through PowerShell Manage...
Coding: Microsoft.Web.Administration ServerManager iisManager =  new  ServerManager(); foreach (WorkerProcess w3wp  in   iisManager.WorkerProcesses ) {     Console.WriteLine("W3WP ({0})", w3wp.ProcessId);                   foreach (Request request  in   w3wp.GetRequests (0)) {         Console.WriteLine("{0} - {1},{2},{3}",                     request.Url,                     request.ClientIPAddr,                     request.TimeElapsed,                     request.TimeInState);     } } Manage...
New Troubleshooting Features ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Troubleshoot...
Failed Request Tracing ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Troubleshoot...
Failed Request Tracing Troubleshoot...
Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[email_address]
[object Object],[object Object],[object Object],[object Object],New home for IIS Community!
Some upcoming IIS sessions… Today 3:15  –  4:30  Chalktalk:  Configuration Management of Web Platform Tomorrow 8:30  –  9:45  IIS 7: Under the Hood for Web Request Tracing 10:15  –  11:30  Chalktalk: Using Managed Code to Administer IIS 7 1:00  –  2:15  Chalktalk: Introducing the New and Improved IIS Manager in IIS 7 2:45  –  4:00  IIS 6: Effective Management of Web Farms 4:30  –  5:45  IIS 6: Everything the Web Administrator Needs to Know about MOM Wednesday 8:30  –  9:45  Chalktalk: Extending the IIS Manager Tool in IIS 7 2:00  –  3:15  Chalktalk: IIS 6.0 Security: Setting the Record Straight 4:45  –  5:00  Chalktalk: IIS and Microsoft.com Operations: Migrating IIS 6.0 to 64 bit 5:30  –  6:45  Chalktalk: IIS 7 Q&A
Fill out a session evaluation on CommNet and   Win an XBOX 360!
© 2006 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.
Additional Information
Installation Options Server Manager Package Manager Server Manager ,[object Object],[object Object],[object Object],[object Object],Package Manager ,[object Object],Unattend ,[object Object],[object Object],[object Object],[object Object],Deploy...
Install, Migration, Upgrade ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Deploy...
ASP.NET: Migration  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Deploy...
Replicating applicationHost.config ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Deploy...
Configuration Delegation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Manage...
Configuration Schema ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Manage...
Appcmd – Viewing Config Schema C:gt; appcmd list config /section:? | findstr system.webServer system.webServer/globalModules system.webServer/serverSideInclude system.webServer/httpTracing ... C:gt; appcmd list config /section:directoryBrowse <system.webServer>   <directoryBrowse enabled=&quot;true&quot; /> </system.webServer>  C:gt; appcmd list config /section:directoryBrowse /config:* <system.webServer>   <directoryBrowse enabled=&quot;true&quot; showFlags=&quot;Extension, Size, Time, Date&quot; /> </system.webServer>  C:gt; appcmd list config /section:directoryBrowse /text:* CONFIG   CONFIG.SECTION: system.webServer/directoryBrowse   path: MACHINE/WEBROOT/APPHOST   overrideMode: Inherit   [system.webServer/directoryBrowse]     enabled:&quot;true&quot;     showFlags:&quot;Extension, Size, Time, Date&quot;  C:gt; C:gt; IIS sections – also try  “system.web” and “system.applicationHost” C:gt; C:gt; Shows attributes that aren’t set explicitly Manage...
Coding: Microsoft.Web.Administration ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Manage...

Contenu connexe

Tendances

Understandingiis 120715123909-phpapp01
Understandingiis 120715123909-phpapp01Understandingiis 120715123909-phpapp01
Understandingiis 120715123909-phpapp01
arunparmar
 
Windows Loves Drupal
Windows Loves DrupalWindows Loves Drupal
Windows Loves Drupal
Acquia
 

Tendances (20)

Build sites on iis
Build sites on iisBuild sites on iis
Build sites on iis
 
IIS7 For Non IIS PFEs
IIS7 For Non IIS PFEsIIS7 For Non IIS PFEs
IIS7 For Non IIS PFEs
 
IIS 7.0 +
IIS 7.0 +IIS 7.0 +
IIS 7.0 +
 
introduction and configuration of IIS (in addition with printer)
introduction and configuration of IIS (in addition with printer)introduction and configuration of IIS (in addition with printer)
introduction and configuration of IIS (in addition with printer)
 
Understanding iis part1
Understanding iis part1Understanding iis part1
Understanding iis part1
 
ASP.NET Request Processing Internals
ASP.NET Request Processing InternalsASP.NET Request Processing Internals
ASP.NET Request Processing Internals
 
How to Monitor IIS
How to Monitor IISHow to Monitor IIS
How to Monitor IIS
 
Hosting a website on IIS Server
Hosting a website on IIS ServerHosting a website on IIS Server
Hosting a website on IIS Server
 
Web303
Web303Web303
Web303
 
Microsoft/Zend Webcast on Cloud Computing
Microsoft/Zend Webcast on Cloud ComputingMicrosoft/Zend Webcast on Cloud Computing
Microsoft/Zend Webcast on Cloud Computing
 
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide showThe complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
 
Chapter 26
Chapter 26Chapter 26
Chapter 26
 
Wordpress on Windows
Wordpress on WindowsWordpress on Windows
Wordpress on Windows
 
Understandingiis 120715123909-phpapp01
Understandingiis 120715123909-phpapp01Understandingiis 120715123909-phpapp01
Understandingiis 120715123909-phpapp01
 
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
 
Upgrade, Migrate and Virtualisation with SharePoint 2010
Upgrade, Migrate and Virtualisation with SharePoint 2010Upgrade, Migrate and Virtualisation with SharePoint 2010
Upgrade, Migrate and Virtualisation with SharePoint 2010
 
Windows Loves drupal
Windows Loves drupalWindows Loves drupal
Windows Loves drupal
 
Windows Loves Drupal
Windows Loves DrupalWindows Loves Drupal
Windows Loves Drupal
 
All About Asp Net 4 0 Hosam Kamel
All About Asp Net 4 0  Hosam KamelAll About Asp Net 4 0  Hosam Kamel
All About Asp Net 4 0 Hosam Kamel
 

En vedette

Internet Information Server (IIS)
Internet Information Server (IIS)Internet Information Server (IIS)
Internet Information Server (IIS)
Rosariio92
 
Web Server Administration
Web Server AdministrationWeb Server Administration
Web Server Administration
webhostingguy
 

En vedette (15)

Internet Information Server (IIS)
Internet Information Server (IIS)Internet Information Server (IIS)
Internet Information Server (IIS)
 
Internet information services(iis)
Internet information services(iis)Internet information services(iis)
Internet information services(iis)
 
IIS
IISIIS
IIS
 
INTRODUCTION TO IIS
INTRODUCTION TO IISINTRODUCTION TO IIS
INTRODUCTION TO IIS
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003
 
Philly Tech Fest Iis
Philly Tech Fest IisPhilly Tech Fest Iis
Philly Tech Fest Iis
 
Configuring iis on windows server 2008 for asp.net application
Configuring iis on windows server 2008 for asp.net applicationConfiguring iis on windows server 2008 for asp.net application
Configuring iis on windows server 2008 for asp.net application
 
Nagios Conference 2011 - Tony Roman - Cacti Workshop
Nagios Conference 2011 - Tony Roman - Cacti WorkshopNagios Conference 2011 - Tony Roman - Cacti Workshop
Nagios Conference 2011 - Tony Roman - Cacti Workshop
 
Servidor HTTP en Windows (IIS)
Servidor HTTP en Windows (IIS)Servidor HTTP en Windows (IIS)
Servidor HTTP en Windows (IIS)
 
Web Server Administration
Web Server AdministrationWeb Server Administration
Web Server Administration
 
Web server administration
Web server administrationWeb server administration
Web server administration
 
IIS7 possibilities
IIS7 possibilitiesIIS7 possibilities
IIS7 possibilities
 
Building Testable PHP Applications
Building Testable PHP ApplicationsBuilding Testable PHP Applications
Building Testable PHP Applications
 
上手なネット広告2014年版
上手なネット広告2014年版上手なネット広告2014年版
上手なネット広告2014年版
 

Similaire à IIS 7: The Administrator’s Guide

ASP.NET 4.0
ASP.NET 4.0ASP.NET 4.0
ASP.NET 4.0
XeDotNet
 
Aspnet architecture
Aspnet architectureAspnet architecture
Aspnet architecture
phantrithuc
 
Php Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc JaoPhp Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc Jao
jedt
 
10 performance and scalability secrets of ASP.NET websites
10 performance and scalability secrets of ASP.NET websites10 performance and scalability secrets of ASP.NET websites
10 performance and scalability secrets of ASP.NET websites
oazabir
 

Similaire à IIS 7: The Administrator’s Guide (20)

ASP.NET 4.0
ASP.NET 4.0ASP.NET 4.0
ASP.NET 4.0
 
IIS 6.0 and asp.net
IIS 6.0 and asp.netIIS 6.0 and asp.net
IIS 6.0 and asp.net
 
Advanced Asp.Net Concepts And Constructs
Advanced Asp.Net Concepts And ConstructsAdvanced Asp.Net Concepts And Constructs
Advanced Asp.Net Concepts And Constructs
 
Asp.net tips
Asp.net tipsAsp.net tips
Asp.net tips
 
PHP on Windows 2008
PHP on Windows 2008PHP on Windows 2008
PHP on Windows 2008
 
Aspnet architecture
Aspnet architectureAspnet architecture
Aspnet architecture
 
Road Show Asp Net
Road Show Asp NetRoad Show Asp Net
Road Show Asp Net
 
Php Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc JaoPhp Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc Jao
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Bh Win 03 Rileybollefer
Bh Win 03 RileybolleferBh Win 03 Rileybollefer
Bh Win 03 Rileybollefer
 
TO Hack an ASP .NET website?
TO Hack an ASP .NET website?  TO Hack an ASP .NET website?
TO Hack an ASP .NET website?
 
PHP on Windows
PHP on WindowsPHP on Windows
PHP on Windows
 
PHP on Windows
PHP on WindowsPHP on Windows
PHP on Windows
 
Hack ASP.NET website
Hack ASP.NET websiteHack ASP.NET website
Hack ASP.NET website
 
10 performance and scalability secrets of ASP.NET websites
10 performance and scalability secrets of ASP.NET websites10 performance and scalability secrets of ASP.NET websites
10 performance and scalability secrets of ASP.NET websites
 
Opr089 xx
Opr089 xxOpr089 xx
Opr089 xx
 
Asp.net
Asp.netAsp.net
Asp.net
 
Scaling asp.net websites to millions of users
Scaling asp.net websites to millions of usersScaling asp.net websites to millions of users
Scaling asp.net websites to millions of users
 
Asp.net
Asp.netAsp.net
Asp.net
 
Tips and Tricks For Faster Asp.NET and MVC Applications
Tips and Tricks For Faster Asp.NET and MVC ApplicationsTips and Tricks For Faster Asp.NET and MVC Applications
Tips and Tricks For Faster Asp.NET and MVC Applications
 

Plus de Information Technology

Plus de Information Technology (20)

Sql Server Security Best Practices
Sql Server Security Best PracticesSql Server Security Best Practices
Sql Server Security Best Practices
 
SAN
SANSAN
SAN
 
SAN Review
SAN ReviewSAN Review
SAN Review
 
SQL 2005 Disk IO Performance
SQL 2005 Disk IO PerformanceSQL 2005 Disk IO Performance
SQL 2005 Disk IO Performance
 
RAID Review
RAID ReviewRAID Review
RAID Review
 
Review of SQL
Review of SQLReview of SQL
Review of SQL
 
Sql 2005 high availability
Sql 2005 high availabilitySql 2005 high availability
Sql 2005 high availability
 
MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2
 
MOSS 2007 Deployment Fundamentals -Part1
MOSS 2007 Deployment Fundamentals -Part1MOSS 2007 Deployment Fundamentals -Part1
MOSS 2007 Deployment Fundamentals -Part1
 
Clustering and High Availability
Clustering and High Availability Clustering and High Availability
Clustering and High Availability
 
F5 beyond load balancer (nov 2009)
F5 beyond load balancer (nov 2009)F5 beyond load balancer (nov 2009)
F5 beyond load balancer (nov 2009)
 
WSS 3.0 & SharePoint 2007
WSS 3.0 & SharePoint 2007WSS 3.0 & SharePoint 2007
WSS 3.0 & SharePoint 2007
 
SharePoint Topology
SharePoint Topology SharePoint Topology
SharePoint Topology
 
Sharepoint Deployments
Sharepoint DeploymentsSharepoint Deployments
Sharepoint Deployments
 
Microsoft Clustering
Microsoft ClusteringMicrosoft Clustering
Microsoft Clustering
 
Scalable Internet Servers and Load Balancing
Scalable Internet Servers and Load BalancingScalable Internet Servers and Load Balancing
Scalable Internet Servers and Load Balancing
 
Web Hacking
Web HackingWeb Hacking
Web Hacking
 
Migration from ASP to ASP.NET
Migration from ASP to ASP.NETMigration from ASP to ASP.NET
Migration from ASP to ASP.NET
 
Internet Traffic Monitoring and Analysis
Internet Traffic Monitoring and AnalysisInternet Traffic Monitoring and Analysis
Internet Traffic Monitoring and Analysis
 
Windows network security
Windows network securityWindows network security
Windows network security
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Dernier (20)

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

IIS 7: The Administrator’s Guide

  • 1. IIS 7: The Administrator’s Guide Alexis Eller Program Manager Microsoft Corporation
  • 2. Scripting… WMI C#, VB.NET… Microsoft.Web.Administration Command Line… appcmd Server Modules ASP.NET on IIS7 Centralization Detailed Errors Failed Request Tracing IIS Manager Deploy... Manage... Troubleshoot...
  • 3. IIS6 Request Processing Send Response Log Compress NTLM Basic Determine Handler CGI Static File Authentication Anon Monolithic implementation Install all or nothing … Extend server functionality only through ISAPI … ASP.NET PHP ISAPI … … Deploy...
  • 4. IIS7 Request Processing Send Response Log Compress NTLM Basic Determine Handler CGI Static File ISAPI Authentication Anon SendResponse Authentication Authorization ResolveCache ExecuteHandler UpdateCache … … Server functionality is split into ~ 40 modules ... Modules plug into a generic request pipeline… Modules extend server functionality through a public module API. … … Deploy...
  • 5.
  • 7.
  • 8.
  • 9.
  • 10. Migrating to Integrated ASP.NET Deploy...
  • 11.
  • 12.
  • 13.
  • 14. Configuration Layout root configuration files machine.config root web.config applicationHost.config web.config .NET Framework ASP.NET IIS IIS + ASP.NET + .NET Framework web.config files indowsicrosoft.NETramework2.0.50727onfigeb.config indowsystem32netsrvpplicationHost.config indowsicrosoft.NETramework2.0.50727onfigachine.config Inheritance… Manage...
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21. Appcmd – Listing and Filtering C:gt; appcmd list sites SITE &quot;Default Web Site&quot; (id:1,bindings:HTTP/*:80:,state:Started) SITE &quot;Site1&quot; (id:2,bindings:http/*:81:,state:Started) SITE &quot;Site2&quot; (id:3,bindings:http/*:82:,state:Stopped) C:gt; appcmd list requests REQUEST &quot;fb0000008000000e&quot; (url:GET /wait.aspx?time=10000,time:4276 msec,client:localhost) C:gt; appcmd list requests /apppool.name:DefaultAppPool C:gt; appcmd list requests /wp.name:3567 C:gt; appcmd list requests /site.id:1 C:gt; C:gt; Filter results by application pool, worker process, or site C:gt; Manage...
  • 23. Scripting: IIS6 WMI Provider Set oIIS = GetObject(&quot;winmgmts:rooticrosoftIISv2&quot;) ' Create binding for new site Set oBinding = oIIS.Get(&quot;ServerBinding&quot;).SpawnInstance_ oBinding.IP = &quot;&quot; oBinding.Port = &quot;80&quot; oBinding.Hostname = &quot;www.site.com&quot; ' Create site and extract site name from return value Set oService = oIIS.Get(&quot;IIsWebService.Name='W3SVC'&quot;) strSiteName = oService. CreateNewSite (&quot;NewSite&quot;, array (oBinding), &quot;C:netpubwwroot&quot;) Set objPath = CreateObject(&quot;WbemScripting.SWbemObjectPath&quot;) objPath.Path = strSiteName strSitePath = objPath.Keys.Item(&quot;&quot;) Set oSite = oIIS.Get(&quot;IIsWebServer.Name='&quot; & strSitePath & &quot;'&quot;) oSite.Start ' Create the vdir for our application Set oVDirSetting = oIIS.Get(&quot;IIsWebVirtualDirSetting&quot;). SpawnInstance_ oVDirSetting.Name = strSitePath & &quot;/ROOT/bar&quot; oVDirSetting.Path = &quot;C:netpubar&quot; oVDirSetting.Put_ ' Make the VDir an application Set oVDir = oIIS.Get(&quot;IIsWebVirtualDir.Name='&quot; & strSitePath & &quot;/ROOT/bar'&quot;) oVDir. AppCreate2 1 Create Site Create Virtual Directory Create Application NOT CONSISTENT Manage...
  • 24. Scripting: new WMI Provider Set oService = GetObject(&quot;winmgmts:rootebAdministration&quot;) ' Create binding for site Set oBinding = oService.Get(&quot;BindingElement&quot;).SpawnInstance_ oBinding.BindingInformation = &quot;*:80:www.site.com&quot; oBinding.Protocol = &quot;http&quot; ' Create site oService.Get(&quot;Site&quot;).Create _ &quot;NewSite&quot;, array (oBinding), &quot;C:netpubwwroot&quot; ' Create application oService.Get(&quot;Application&quot;).Create _ &quot;/foo&quot;, &quot;NewSite&quot;, &quot;C:netpubwwrootoo&quot; Static Create methods CONSISTENT Manage...
  • 25. WMI – Unloading AppDomains …through script …through PowerShell Manage...
  • 26. Coding: Microsoft.Web.Administration ServerManager iisManager =  new  ServerManager(); foreach (WorkerProcess w3wp  in   iisManager.WorkerProcesses ) {     Console.WriteLine(&quot;W3WP ({0})&quot;, w3wp.ProcessId);                   foreach (Request request  in   w3wp.GetRequests (0)) {         Console.WriteLine(&quot;{0} - {1},{2},{3}&quot;,                     request.Url,                     request.ClientIPAddr,                     request.TimeElapsed,                     request.TimeInState);     } } Manage...
  • 27.
  • 28.
  • 29. Failed Request Tracing Troubleshoot...
  • 30.
  • 32.
  • 33. Some upcoming IIS sessions… Today 3:15 – 4:30 Chalktalk: Configuration Management of Web Platform Tomorrow 8:30 – 9:45 IIS 7: Under the Hood for Web Request Tracing 10:15 – 11:30 Chalktalk: Using Managed Code to Administer IIS 7 1:00 – 2:15 Chalktalk: Introducing the New and Improved IIS Manager in IIS 7 2:45 – 4:00 IIS 6: Effective Management of Web Farms 4:30 – 5:45 IIS 6: Everything the Web Administrator Needs to Know about MOM Wednesday 8:30 – 9:45 Chalktalk: Extending the IIS Manager Tool in IIS 7 2:00 – 3:15 Chalktalk: IIS 6.0 Security: Setting the Record Straight 4:45 – 5:00 Chalktalk: IIS and Microsoft.com Operations: Migrating IIS 6.0 to 64 bit 5:30 – 6:45 Chalktalk: IIS 7 Q&A
  • 34. Fill out a session evaluation on CommNet and Win an XBOX 360!
  • 35. © 2006 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.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43. Appcmd – Viewing Config Schema C:gt; appcmd list config /section:? | findstr system.webServer system.webServer/globalModules system.webServer/serverSideInclude system.webServer/httpTracing ... C:gt; appcmd list config /section:directoryBrowse <system.webServer>   <directoryBrowse enabled=&quot;true&quot; /> </system.webServer> C:gt; appcmd list config /section:directoryBrowse /config:* <system.webServer>   <directoryBrowse enabled=&quot;true&quot; showFlags=&quot;Extension, Size, Time, Date&quot; /> </system.webServer> C:gt; appcmd list config /section:directoryBrowse /text:* CONFIG   CONFIG.SECTION: system.webServer/directoryBrowse   path: MACHINE/WEBROOT/APPHOST   overrideMode: Inherit   [system.webServer/directoryBrowse]     enabled:&quot;true&quot;     showFlags:&quot;Extension, Size, Time, Date&quot; C:gt; C:gt; IIS sections – also try “system.web” and “system.applicationHost” C:gt; C:gt; Shows attributes that aren’t set explicitly Manage...
  • 44.

Notes de l'éditeur

  1. 05/14/10 14:23 © 2006 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.
  2. 05/14/10 14:23 © 2006 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.
  3. Themes of IIS7 was merger with ASP.NET
  4. 05/14/10 14:23 © 2006 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.
  5. 05/14/10 14:23 © 2006 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.
  6. 05/14/10 14:23 © 2006 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.
  7. IIS.net slide
  8. Upcoming sessions slide
  9. 05/14/10 14:23 © 2006 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.
  10. 05/14/10 14:23 © 2006 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.