Home Register Members List Search Today's Posts Mark Forums Read

Go Back   TechFuels Forum > Software > Applications

Reply
 
LinkBack Thread Tools
techno23
Senior Member
 

techno23 is offline  
Old 02-16-2008, 10:46 AM
  #1 (permalink)
Enhanced Configuration Options in lIS7

If you have been following the IrS 7 se'ries that has been running for the past few months, you'd have seen
that there are tons of new configuration options in US7. All of these can be manŽaged through multiple ways-IrS ManŽager, the AppCmd command line, PowerS hell scripts and more. This month we take a brief look at the new configuraŽtion architecture and the different ways that an administrator can use them.

In IrS6, a new feature was: moving the metabase (the database that holds the configuration data of IrS) from a propriŽetary binary format to an XML based open format. This allowed admins to change settings by simply writing to a file called Metabase.xml. However, with the advent of . NET, especially ASP.NET, this brought on a new set of issues. ASP.NET has its own set of configuration files, namely machine.config and web.config. Working with different sets of XML files and their individual configurations sudŽdenly started becoming a little bit compliŽcated.Enter IrS 7. In this version the IrS 7 configuration system has been made compatible with ASP.NET's configuraŽtion system. This is how it works: ApplicationHost.config: This is the IrS 7 main configuration file that conŽtains all the settings for the server as well as for the sites on the server. It has the same syntax and schema as the ASP.NET configuration. Machine.config: This is the full conŽfiguration file for .NET that stores all possible values of different configuŽration directives on this machine.

Web.config: This is the site/applicaŽtion specific configuration file that now stores data for both .NET as well as for IrS7.
Basically, Web.config works like this.
It has two sections that deal with two difŽferent sets of configuration data. The sysŽtem. web section stores the configuration that has anything to do with ASP.NET while the system. webServer section stores data for IrS 7-both specific to the site or application that the Web.config beŽlongs to. Now that you have an understanding as to how IrS 7 stores its configuration data, we can take a look at the different ways an administrator can manage it.

The first way that an administrator can manage the US 7 server is remotely. In earlier versions of US6 you had a few choices-do a remote desktop, connect via the US MMC over a binary IP protocol or use the IrS Admin website. In US 7 the last two have been done away with. InŽstead an administrator can connect to a site or application remotely over a secure HTTPS connection using US Manager. That is, from a remote machine that To allow remote connections to IIS7, simply turn on this service and make the appropriate changes. Make sure to start the service once you are done has the new lIS Manager installed, you can connect to a running lIS? server over a secure HTTP connection. To do this, one must first install a Windows Server 2008 feature called lIS? Remote Management Service. Once this is installed, you will get a new icon within the Management Options group on the server.

Open this icon and turn the Remote Management option on. You can also change the other settings if you wish. You will need a digiŽtal certificate for the HTTPS connection to the service. lIS? auŽtomatically creates a new self-signed certificate for each server, however, if you wish you can also use any other certificate inŽstalled on the machine as well. Once the configurations are done, save the setup and start the service. You can now connect from any machine running lIS Manager by giving the name of the server, site or application. Connection options are Windows or lIS credentials. You can set the latter in the same Management section.

The next thing an administrator can do is to delegate the adŽministration of certain configuration options to others. For inŽstance, if you're an ISP running a server with hundreds or thousands of sites, managing each site yourself would be a pain. Instead, you can delegate certain options to owners of the sites themselves and they can go ahead and make whatever changes they want. For example, you might want owners to take care of simple options like Default Document, Logging and CompresŽsion, but not want them to change sensitive ones like SSL,Modules. etc. To do this. at the server level. select Feature Delegation. In this screen. you will get to see a list of all the features available on the server. You can select each feature and turn the feature delegation to one of the following three values: >- Not Delegated: The user cannot view or change this particular feaŽture. The value for the feature is stored in the applicationHost.config file and only administrators can change it.

>- Read Only: The user can view but cannot change the value for this feaŽture. The value is stored within the system.webServer section of the site's web.config file. Attempts to change the value will result in the site throwing an exception to anyone trying to reach it.

>- Read/Write: The feature is fully delŽegated and the user can change the value to any valid option. The setting is stored as in the 'Read Only' option but is writable.

Now when a user connects to his site with either Windows or US Manager creŽdentials. depending upon the delegations configured on the server. he will be able to see only the last two types of features for his site and make changes only to the last type.

Finally. administrators can quickly scale out their Web server into multiple machines with minimal effort. In earler versions to ensure that servers run the same configuration. one had to setup complicated replication policies. In US 7. however. administrators can use what is known as Shared Configuration. To do this. simply select the icon from the management section on the server that has the configuration setup as you wish. Now in the context bar. click 'Export ConfiguraŽtion .. .' In the dialog that pops up. you can select a path to store the configuration to. rr this is a UNC network share you can give the credentials to connect to it. You also need to give a strong password for encrypting the exported configuration.

Once the export is done. on all the servers that need to share the configuration-including the one that you just exŽported the configuration from- turn on the option that says 'Enable Shared ConŽfiguration' and give it the path where the files were stored with the appropriate credentials. Now if you make configuration changes on any server. it will immediŽately apply on all other servers as well since the configuration files are actually being shared.

As you can see. US 7 has a number of new configuration options that administrators can use to make their life easier and make the management of servers. sites and applications much more effiŽcient and secure.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Options Windows XP techno23 Windows XP 0 02-15-2008 11:15 AM
New PC Configuration? KalyanJ6149 Graphic & Displays 7 02-08-2008 05:57 AM
Options to cool an opteron 185 tech-savvy Overclocking 0 01-18-2008 12:18 PM


All times are GMT +1. The time now is 03:16 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Copyright Techfuels -->
SEO by SubmitEdge


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151