A final basic configuration task to consider is adding or removing entries from collections. A
collection is a list of items that belong to a particular object. For example, a Web site can have a number
of default documents. If you want to list all of the default documents for a Web site, such as the
Default Web Site, type AppCmd List CONFIG ???Default Web Site??? /Section:DefaultDocument
and press Enter. You??™ll see results similar to those shown in Figure 24.12.
Figure 24.12
List collections of
items on your server
to see items such as
default documents.
562 CHAPTER 24 INSTALLING AND CONFIGURING IIS
You don??™t actually want to have the IISStart.HTM file as part of the Default Web Site unless you
plan to use it for something. Consequently, removing this file as part of your configuration is important.
To remove a file, you must specify its position in the list. This file appears in the fifth position,
but the list is zero based, so you refer to it as value number 4 (the first item in the list if value number
0). Type AppCmd Set CONFIG ???Default Web Site??? /Section:DefaultDocument /-Files.[@4]
and press Enter. Notice that you place a minus sign (??“) in front of Files to indicate that you want
to remove this entry.
Pages:
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287