Professional Documents
Culture Documents
Unidad: 1
Semana: 2
TECNOLOGIA e-BUSINESS
Authentication
NTLM
Basic
Anon
Monolithic implementation
Install all or nothing
CGI
Determine
Handler
Static
File
ASP.NET
ISAPI
Send Response
Log
Compress
PHP
Authentication
NTLM
Basic
Anon
Authorization
ResolveCache CGI
Determine
Static
File
Handler
ExecuteHandler
ISAPI
UpdateCache
Send Response
SendResponse
Log
Compress
Authentication
NTLM
Basic
Anon
CGI
Determine
Handler
Static
File
ISAPI
Send Response
Log
Compress
aspnet_isapi.dll
Authentication
Forms
Windows
Map
Handler
ASPX
Trace
Authentication
Authorization
ResolveCache
ExecuteHandler
Integrated Mode
.NET modules
aspnet_isapi.dll
Static
File
ISAPI
/
handlers plug directly
Authentication
intoWindows
pipeline
Forms
Process all requests
ASPX
Full runtime
fidelity
Map
Handler
UpdateCache
SendResponse
Compress
Log
Trace
Configuration Layout
Inheritance
IIS
IIS +
ASP.NET +
.NET Framework
ASP.NET
applicationHost.config
.NET
Framework
web.config
root web.config
machine.config
root configuration files
web.config files
Configuration
Delegation
Delegation is:
Configuration locking, overrideMode
ACLs on configuration files
By default
All IIS sections locked except:
Default Document
Directory Browsing
HTTP Header
HTTP Redirects
IIS6
ADSI Script
IISADMIN
ABOMapper
applicationHost.config
Management Tools
GUI
IIS Manager
Command Line
appcmd
Script
WMI (root\WebAdministration)
Managed Code
Microsoft.Web.Administration
Manage delegation
Use whichever management tool suits your
needs
IIS Manager
C:\>
SITE
SITE
SITE
C:\>
C:\> appcmd list requests
REQUEST "fb0000008000000e" (url:GET
/wait.aspx?time=10000,time:4276 msec,client:localhost)
C:\>
C:\> appcmd list requests /apppool.name:DefaultAppPool
C:\> appcmd list requests /wp.name:3567
C:\> appcmd list requests /site.id:1
Filter results by
application pool, worker
process, or site
NOT CONSISTENT
Create Site
' Create site and extract site name from return value
Set oService = oIIS.Get("IIsWebService.Name='W3SVC'")
strSiteName = oService.CreateNewSite("NewSite", array(oBinding), "C:\inetpub\wwwroot")
Set objPath = CreateObject("WbemScripting.SWbemObjectPath")
objPath.Path = strSiteName
strSitePath = objPath.Keys.Item("")
Set oSite = oIIS.Get("IIsWebServer.Name='" & strSitePath & "'")
oSite.Start
Create Application
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);
}
}
Summary
Deploy
~ 40 modules, install only what you need
Migrate to ASP.NET Integrated Mode
Easier centralization/replication
Manage
Manage IIS and ASP.NET through the same tools
Use ABO Mapper compatibility (not installed by default)
Determine configuration lockdown policy
Troubleshoot
Use: Detailed Errors, Failed Request Tracing, Currently
Executing requests
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
Additional Information
Installation Options
Lots of components
Static server by default
[client] Use Windows
Features
Replaces sysocmgr
File format is
completely different
[client] Pick components,
cannot set configuration
ASP.NET: Migration
Application Pools
Integrated Mode
Different server environment for some pipeline notifications
e.g. request is not authenticated for BeginRequest
ISAPI Mode
Cant configure HTTP handlers and modules from the UI
Replicating applicationHost.config
Will cause all application pools to recycle:
changes to default settings for all application pools
changes to the <globalModules> list
Gotcha's:
Machine specific data, like IP addresses or drive letters
Servers must have same set of modules installed (reference
to non-existent module in <globalModules> causes 503's)
Configuration Delegation
Two kinds of configuration locking:
overrideMode (similar to "allowOverride")
granular locking, e.g. lockItem, lockElements
By default
All IIS sections locked (overrideMode=Deny) except:
Default Document, Directory Browsing, HTTP Header, HTTP
Redirects, Validation
Configuration Schema
Use the schema file to see all config settings:
%windir%\system32\inetsrv\config\schema\IIS_schema.xml
Schema describes:
property types
default values
validation
encrypted by default?
try
system.applicationHost
Coding:
Microsoft.Web.Administration
First managed code API for administering IIS
Same objects and functionality as WMI, appcmd
Microsoft.Web.Administration:
Weakly typed IIS, ASP.NET, and .NET Framework config
Strongly typed IIS objects like Sites and Application Pools
GRACIAS