Configuring a Web Services Infrastructure

These questions are based on 70-649 – TS.


Objective: Configuring a Web Services Infrastructure
Sub-Objective: Migrate sites and Web applications


Single Answer, Multiple Choice


You are the systems administrator of DreamSuites Corporation. The company’s network consists of a single Active Directory domain. The network contains an Internet Information Services (IIS) 7.0 server, named IISSrv, which runs Windows Server 2008. IISSrv hosts an application named Graphics within the DreamSuites Web site, which uses a virtual directory named \IISSrvGFXLogos.


You discover that the performance of IISSrv has degraded due to low disk space. You install a new file server on the network, named File1, and move the contents of the virtual directory to the \File1DreamSuitesGFXData folder.


What should you do to ensure that users are able to access the content of the \File1DreamSuitesGFXData folder?



  1. Run the Appcmd set vdir /vdir.name:”DreamSuites/Graphics/Logos” /physicalPath:\File1DreamSuitesGFXData command.
  2. Run the Appcmd set vdir /vdir.name:”DreamSuites/Graphics/Logos” /path:\File1DreamSuitesGFXData command.
  3. Run the Appcmd set vdir /vdir.name:”Logos” /physicalPath:\File1DreamSuitesGFXData command.
  4. Run the Appcmd set vdir /vdir.name:”Logos” /path:\File1DreamSuitesGFXData command.

Answer:



  1. Run the Appcmd set vdir /vdir.name:”DreamSuites/Graphics/Logos” /physicalPath:\File1DreamSuitesGFXData command.

Tutorial:
You should run the Appcmd set vdir /vdir.name:”DreamSuites/Graphics/Logos” /physicalPath:\File1DreamSuitesGFXData command. A virtual directory is a directory name that corresponds to a physical directory on the Web server. The names of virtual directories are used in URL addresses. A virtual directory allows you to include directory content in a Web site or Web application without needing to move the content physically into that Web site or Web application directory. When you move the location of a virtual directory’s content in the file system, you must also update the physical path in IIS to ensure that users are able to access the content of the virtual directory. You can run the Appcmd set vdir command with the /vdir.name and /physicalPath parameters to change the path to a virtual directory’s content. The /vdir.name parameter specifies the virtual path of the virtual directory. The /physicalPath parameter specifies the physical path to the content used by the application.


For example, to change the physical path to the location \File1DreamSuitesGFXData for a virtual directory named Logos in an application named Graphics within a Web site named DreamSuites, you should run the following command: Appcmd set vdir /vdir.name:”DreamSuites/Graphics/Logos” /physicalPath:\File1DreamSuitesGFXData.


You should not run the Appcmd set vdir /vdir.name:”DreamSuites/Graphics/Logos” /path:\File1DreamSuitesGFXData command. The /path parameter is used to specify the virtual path to the virtual directory. When you want to change the physical path to a virtual directory’s content, you must use the /physicalPath parameter. The /physicalPath parameter specifies the physical path to the content used by the application.


You should not run the Appcmd set vdir /vdir.name:”Logos” /physicalPath:\File1DreamSuitesGFXData command. In this scenario, the Logos virtual directory is created in the Graphics application in the DreamSuites Web site. Therefore, you should specify the complete path to the virtual directory, which is DreamSuites/Graphics/Logos.


You should not run the Appcmd set vdir /vdir.name:”Logos” /path:\File1DreamSuitesGFXData command. In this scenario, the Logos virtual directory is created in the Graphics application in the DreamSuites Web site. Therefore, you should specify the complete path to the virtual directory, which is DreamSuites/Graphics/Logos. Also, to change the physical path to a virtual directory’s content, you must use the /physicalPath parameter to specify the physical path to the content used by the application.


Reference:
Windows Server 2008 Technical Library > Web Server > Operations > IIS 7.0 Beta: Operations Guide > IIS 7.0 Beta: Configure a Web Server to Serve Content > IIS 7.0 Beta: Managing Virtual Directories in IIS 7.0 > IIS 7.0 Beta: Change the Physical Path to Virtual Directory Content

Like what you see? Share it.Share on Google+Share on LinkedInShare on FacebookShare on RedditTweet about this on TwitterEmail this to someone
cmadmin

ABOUT THE AUTHOR

Posted in Archive|

Comment:

Leave a comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>