2015-01-07 146 views
0

我在我的Windows R2服務器上使用iis中的php,默認localhost路徑爲C:\inetpub\wwwroot,我想將其更改爲D,原因是C可能已滿。 感謝您的幫助。將iis localhost從C更改爲D:

回答

0

here爲IIS6:

使用IIS管理

  1. 在IIS管理器更改網站的主目錄,展開本地計算機,展開Web站點目錄,右鍵 - 點擊您想要更改的網站,然後點擊 停止。

  2. 使用Windows資源管理器將LocalDrive:\ Inetpub \ Wwwroot目錄重命名爲您選擇的名稱。或者,您可以將整個\ Wwwroot目錄樹複製到新位置。

  3. 在IIS管理器中,右鍵單擊您的網站,然後單擊屬性。

  4. 單擊主目錄選項卡,並根據內容此資源應來自,單擊 位於此計算機上的目錄, 位於另一臺計算機上的共享,或重定向到URL,這取決於您的主目錄位於。

  5. 在本地路徑框中,鍵入目錄的路徑名稱,共享名稱或URL。

注意如果選擇在網絡共享目錄,則可能需要 輸入用戶名和密碼才能訪問該資源。 如果未指定其他帳戶 ,則IUSR_computername是使用的默認帳戶。如果您在服務器上使用具有管理憑證 的帳戶,則客戶端可以訪問服務器操作。這 嚴重危害您的網絡的安全。有關安全性的用戶權限看到 幫助,「安全性最佳做法」和支持中心的Windows Server更 信息2003

  • 在IIS管理器,展開Web站點文件夾, - 點擊剛更改的網站,然後點擊開始。
  • 0

    是的,你可以做....只要做下面的步驟:

    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. 
    
    相關問題