However, if you want to change
this setting, you can type
AppCmd Set CONFIG /section:DirectoryBrowse /enabled:True
and press Enter. The AppCmd utility will let you know that the item has changed as shown in
Figure 24.9. When you type AppCmd List CONFIG /section:DirectoryBrowse and press Enter
a second time, you??™ll see the changed setting shown in Figure 24.9.
560 CHAPTER 24 INSTALLING AND CONFIGURING IIS
Figure 24.9
The AppCmd utility
provides you with a
safe way to modify the
CONFIG file settings.
Now, let??™s say that you want the default setting for DirectoryBrowse set to False for the Web server,
but True for the Default Web Site. In this case, you must specify the name of the Web site you want
to change, so you??™d type AppCmd Set CONFIG ???Default Web Site??? /section:DirectoryBrowse
/enabled:True and press Enter. The name of the Web site is Default Web Site. Of course, you??™d use
the name of whatever Web site you want to change. You can verify that the Web server and the
Default Web Site have different settings. First, type AppCmd List CONFIG /section:DirectoryBrowse
and press Enter to check the Web server. Second, type AppCmd List CONFIG ???Default Web Site???
/section:DirectoryBrowse and press Enter to check the Default Web Site.
Pages:
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284