将 iis localhost 从 C: 更改为 D:

change iis localhost from C: to D:

我在 windows R2 服务器的 iis 中使用 php,默认的本地主机路径是 C:\inetpub\wwwroot,我想将它更改为 D,因为 C 可能已满. 感谢您的帮助。

查找 here IIS6:

To change the home directory of a Web site using IIS Manager

  1. In IIS Manager, expand the local computer, expand the Web Sites directory, right-click the Web site you wish to change, and click Stop.

  2. Use Windows Explorer, to rename the LocalDrive:\Inetpub\Wwwroot directory to the name of your choice. Alternatively, you can copy the entire \Wwwroot directory tree to a new location.

  3. In IIS Manager, right-click your Web site, and click Properties.

  4. Click the Home Directory tab, and under The content for this resource should come from, click A directory located on this computer, A share located on another computer, or A redirection to a URL, depending on where your home directory is located.

  5. In the Local path box, type the path name, share name, or URL of your directory.

Note If you select a directory on a network share, you might need to enter a user name and password to access the resource. IUSR_computername is the default account used if another account is not specified. If you use an account with administration credentials on the server, clients can gain access to server operations. This seriously jeopardizes the security of your network. For more information on security user rights see, "Security Best Practices" in Help and Support Center for Windows Server 2003.

  1. In IIS Manager, expand the Web Sites folder, right-click the Web site you just changed, and click Start.

是的,你可以做....只需执行以下步骤:

  1. Open IIS Manager. For information about opening IIS Manager, 
     see Open IIS Manager (IIS 7).
  2. In the Connections pane, expand the Sites node in the tree, and 
     then click to select the site in which you want to change the physical path 
     for virtual directory content.
  3. In the Actions pane, click View Virtual Directories.
  4. From the Virtual Directories page, select a virtual directory in the list.
  5. In the Actions pane, click Basic Settings.
  6. In the Physical path box, change the path of the virtual directory content.
  7. Click OK.