However, an application can have more than one virtual directory. For example, you might use a virtual directory when you want your application to include images from another location in the file system, but you do not want to move the image files into the physical directory that is mapped to the application's root virtual directory.
In the Connections pane, expand the server name, expand Sites , expand the Web site to which you want to add the virtual directory, and then click the application to which you want to add the virtual directory.
In the Add Virtual Directory dialog box, at a minimum enter information in the Alias: and Physical path: text boxes, and then click OK. You can click Connect as The path attribute defines the path for the application. The first defines the root virtual directory for the application, and the second defines an Images virtual directory for the application.
When you create an application from the command prompt or from a script, you must explicitly create a root virtual directory for the application. You must be sure to set the commit parameter to apphost when you use AppCmd.
This commits the configuration settings to the appropriate location section in the ApplicationHost. Skip to main content. This browser is no longer supported. Gets or sets the password that the virtual directory uses to access its configured physical location.
Gets or sets the user name that the virtual directory uses to access its configured physical location. Returns a ConfigurationAttribute object that represents the requested attribute. Returns a child element that is under the current configuration element and has the specified name.
Returns a child element that is under the current configuration element and has the specified name and type. Returns the configuration element that has the specified name and type and is under the current configuration element.
Returns the configuration element that has the specified type and is under the current configuration element. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Although the VirtualDirectoryDefaults property is read-only, the values in the collection returned allow for both reading and writing. After you change a value in the collection, you must use the CommitChanges method of a ServerManager object to write the values to the configuration system.
Skip to main content. This browser is no longer supported. Improve this answer. Kev Kev k 50 50 gold badges silver badges bronze badges.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back
0コメント