iis - 从 C : to D: 更改 iis localhost

标签 iis localhost

我在 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.

关于iis - 从 C : to D: 更改 iis localhost,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27814021/

相关文章:

iis - 使用 get-website 的网站的 Powershell 列表?

asp.net - Visual Studio 无法在 IIS 中创建网站

javascript - PhantomJS 主机文件更改或主机 header

hadoop - ubuntu 14.04/64b 安装cloudera manager

redis - 如何在本地主机 WAMP 上使用 Redis

c# - IIS 8.5 连接超时总是_60 秒

asp.net - 访问报表服务器时出现 AppPool 权限问题

IIS 7/Pure ASP 文件上传问题

php - 虽然 php 运算符与 mysql Truncate 不起作用

PHP/MySQL 奇怪的问题影响仅当用户登录时从数据库中获取