Figure 24.10 shows the
results you??™d see. Notice that the Web server and Default Web Site entries differ.
Figure 24.10
You can change settings
at any level you
want using AppCmd.
The configuration process works for any setting you want to change. Let??™s say you want to
check the status of logging for the server. You can type AppCmd List CONFIG /section:Log and
press Enter to perform this task. The default settings enable both the centralBinaryLogFile and
centralW3CLogFile files. Both logs appear in the %SystemDrive%\inetpub\logs\LogFiles folder.
If you want to use only the W3C log file format and you want to place the files in the D:\IISLogs
folder, you??™d use a three step process to make the change:
1. Type AppCmd Set CONFIG /section:Log /centralBinaryLogFile.enabled:False and
press Enter. Notice that you specify the section as Log, the object as centralBinaryLogFile,
and the attribute as enabled. The value of the enabled is False. You separate the attribute
from the value with a colon in this case (or you??™ll see an error).
CONFIGURING A BASIC WEB SITE 561
2. Type AppCmd Set CONFIG /section:Log /centralW3CLogFile.directory:???D:\IISLogs???
and press Enter.
Pages:
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285