【发布时间】:2015-03-05 00:38:35
【问题描述】:
我在我们的 Windows R2 服务器的 iis 中使用 php,默认 localhost 路径是C:\inetpub\wwwroot,我想将其更改为 D,因为 C 可能已满。
感谢您的帮助。
【问题讨论】:
我在我们的 Windows R2 服务器的 iis 中使用 php,默认 localhost 路径是C:\inetpub\wwwroot,我想将其更改为 D,因为 C 可能已满。
感谢您的帮助。
【问题讨论】:
查看here 的 IIS6:
使用 IIS 管理器更改网站的主目录
在 IIS 管理器中,展开本地计算机,展开网站目录,右键单击要更改的网站,然后单击 停下来。
使用 Windows 资源管理器将 LocalDrive:\Inetpub\Wwwroot 目录重命名为您选择的名称。或者,您可以复制 整个 \Wwwroot 目录树到一个新位置。
在 IIS 管理器中,右键单击您的网站,然后单击属性。
单击主目录选项卡,然后在此资源的内容应来自下,单击位于此计算机上的目录, 位于另一台计算机上的共享,或重定向到 URL, 取决于您的主目录所在的位置。
在本地路径框中,输入目录的路径名、共享名或 URL。
注意如果您选择网络共享上的目录,您可能需要 输入用户名和密码以访问资源。 IUSR_computername 是另一个帐户时使用的默认帐户 未指定。如果您使用具有管理凭据的帐户 在服务器上,客户端可以访问服务器操作。这 严重危害您的网络安全。更多 有关安全用户权限的信息,请参见“安全最佳实践” Windows Server 2003 帮助和支持中心。
- 在 IIS 管理器中,展开网站文件夹,右键单击刚刚更改的网站,然后单击开始。
【讨论】:
是的,你可以这样做....只需执行以下步骤:
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.
【讨论】: