The id is the unique numeric ID used internally to identify the site
within the server. It can be any number as long as it??™s unique. The bindings specify the
Table 6-2. APPCMD.EXE Supported Object Types
Object Types Description
SITE Administration of virtual sites
APP Administration of applications
VDIR Administration of virtual directories
APPPOOL Administration of application pools
CONFIG Administration of general configuration sections
WP Administration of worker processes
REQUEST Administration of HTTP requests
MODULE Administration of server modules
BACKUP Administration of server configuration backups
TRACE Working with failed request of trace logs
197 Chapter 6: Internet Information Services 7.0
protocol, address, and port to which this virtual site will listen. The physicalpath is the
full pathname to the root of the Web site.
The following command creates a site called Test Website that will listen to HTTP
traffic on port 8010 and will point to C:\inetpub\TestWebsite as the physical path. Since
the ID can be any number, but must be unique, I use 8010 as the ID for simplicity:
APPCMD.EXE add site /name:"Test Website" /id:8010 /bindings:"http:/*:8010:"
/physicalPath:"C:\inetpub\TestWebsite"
When you create a site using APPCMD.EXE, you??™ll also create and associate an application
and a virtual directory object to that site. You can find out which applications are
associated with a site and which virtual directories are associated using APPCMD.
Pages:
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246