Deploy Microsoft IIS configuration elements and attributes
This topic provides information about Deploy Microsoft IIS configuration elements and attributes.
After you have installed Deploy and the Microsoft IIS plugin, log in to Deploy and follow these instructions to:
- Create, modify and remove Collection Config Elements
- Create, modify and remove Attributes
Create Config Collection Element
The ConfigurationElementCollection represents a collection of elements within a configuration file. In the below example, files is a collection containing elements under it.
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
</files>
</defaultDocument>
</system.webServer>
- To create a new Config Collection element in an applicaiton package, Select ConfigCollectionElementSpec from IIS.
- Enter value for fields like the path, filter, index and attributes. Path and index are optional values. Path defaults to MACHINE/WEBROOT/APPHOST.
- Click Save and deploy the application.
- The new collection element will be added to the config file and will be picked up by IIS.
Create Attribute Element
Attribute is a configuration on a configuration section or a configuration element. In the below example, enabled is an attribute on configuration elements caching.
<system.webServer>
<caching enabled="true" enableKernelCache="true">
</caching>
</system.webServer>
- To create an attribute or a set of attributes, Select AttributeSpec from IIS.
- Enter value for fields like the path, filter and attributes.
- Click Save and deploy the application.
- The new attribute(s) will be added to the element in the config file and will be picked up by IIS.