觀看視頻教程

如果您的託管套裝軟體包括一個以上的域名(網站),那麼您可輕鬆添加域名到您的伺服器。在您開始添加將使用二級域名的新域名時,如 example.com ,請務必註冊該域名。如果您的主機提供商會提供域名註冊服務,您可如下描述在客戶面板中進行此操作。否則,您需要通過其他域名註冊機構註冊您的域名。

您可通過 Plesk 設定下面不同類型的網站配置:

  • 使用二級域名位址的網站。 網站可用下面的服務:
    • 唯一的互聯網地址(域名),如 example.com
    • 其他域名(域的別名)。
    • 子域名 - 一個網站的分支,其位址很容易記住,可添加至主網站,如 mail.example.com。
    • 用於網站內容合作的獨立 FTP 帳號。針對每個 FTP 帳號,您可指定存取的目錄。
    • 使用 Presence Builder 創建內容。
    • 應用程式的簡化部署,例如添加內容管理系統、相冊、購物車、部落格平臺、論壇等等。
    • 通過 SSL/TLS 協議的安全資料交換。這需要網站託管於一個不與其他用戶和網站共用的專用 IP 地址上。
    • 郵箱與郵寄清單。
    • 查看有關網站存取量的統計。
  • 網站與三級域名的網站分支(子域)。 這通常是現有網站的分支。三級域名的互聯網位址由點號隔開的三個部分組成。子域可用下面的服務:
    • 文檔根與主網站分開。文檔根是伺服器上存儲網頁的目錄。
    • 通過 FTP 存取內容管理。
    • 使用 Presence Builder 創建內容。
    • 應用程式的簡化部署。
    • 通過 SSL/TLS 協議的安全資料交換。
    • 查看有關網站存取量的統計。

添加更多域名

託管一個新的二級域名網站:

  1. 轉入 網站與域名 ,點按 添加域名 然後根據螢幕上的說明操作。

    備註: 因 Plesk 的版本,您可以在 添加域名 螢幕上指定的資訊可能會不同。

    image 76850

    備註: 如果您選擇推薦選項,則應該把相關的 DNS 設定以及您的域名與註冊方的域名相連接。如要實現此操作,需輸入 Plesk 名稱伺服器 IP 位址到註冊方相應的 NS 記錄裡。有關如何獲得 IP 的說明如下:請轉到 網站與域名 > 域名 > DNS 設定 ,找到 NS 記錄,然後找到 NS 記錄值相應的 A 記錄。

    例如,如果 NS 記錄是

    example.com. NS ns.example.com*,
    

    找到帶有 ns.example.com 的 A 記錄,如

    ns.example.com. A 192.0.2.12
    

    結果值, 192.0.2.12,就是您需要的 Plesk 域名伺服器 IP。

  2. 點按 確定

    現在在螢幕底部顯示新的域名。

  3. 如果您的帳號可更改主機設定,那麼您可點按新網站的域名查看或更改主機設定,可參照小節 更改主機設定

現在您可開始使用 Presence Builder 創建網站,或上傳您的網站內容至新訂閱,可參照小節 網站內容

選擇一個域名視圖模式

「網站與域名」 螢幕可能會因您選擇的域名視圖模式而所有不同(佈局、可視的控制項和總體 UX):

  • Dynamic List is the best choice because it combines advantages of two other view modes: the laconic layout with a large number of domains and an expandable list containing all available controls. Dynamic List is also the only mode that shows domain favicons.
  • 如果您有多個域名且想要使用所有可用的控制項,最適合選擇活動模式。
  • 如果您有很多域名(多於 100 個)適合選擇經典模式。但是並不是所有控制項都可見。

image views

若要選擇視圖模式,請轉入 網站與域名,點按 image wrench 圖示,然後選擇所需模式。

Adding a Domain Favicon

A domain favicon is a small image Plesk shows next to a domain name if you use the Dynamic List view. You can see favicons on the Websites & Domains screen.

Once you create a domain, Plesk generates and shows a default favicon based on the first two characters of the domain name.

image default favicon

However, you can add your custom favicon, for example, the same one you use as your website favicon shown on the browser tab. Custom domain favicons help you to do the following:

  • Find the desired website more easily.
  • Tell one domain from another.

To add a Dynamic List domain favicon:

  1. Choose a PNG, SVG, or ICO image you will use as the favicon.

  2. Give the favicon image any of the following names:

    • favicon.svg
    • favicon-32x32.png
    • favicon.png
    • favicon-16x16.png
    • apple-touch-icon.png
    • favicon.ico
  3. Using File Manager, upload the image to one of the following website directories:

    • The document root directory, which is, by default, httpdocs (unless your hosting provider set a custom document root)
    • /images in the document root directory
    • /assets/images in the document root directory

    image favicon location

    備註: It is essential that you upload a favicon to one of the directories mentioned above. To show a custom favicon, Plesk non-recursively searches for exact file name matches in the directories. If you upload the favicon.svg file to the /images/favicon directory, Plesk will not find the image because /images/favicon is a subdirectory of the required directory.

You have uploaded your custom favicon image. To have Plesk show your favicon, wait a while or refresh the Plesk page.

image custom favicon

備註: If your website runs on WordPress, you can create both the website and domain favicon at the same time using the Favicon by RealFaviconGenerator plugin. Plesk detects a website favicon created by the plugin wizard and automatically sets the favicon for the domain in Dynamic List view.

移動域名

您可以在現有訂閱之間移動附加域名(這些是訂閱的第一個域名之後創建的域名。這對於,例如,將過渡網站與生產網站分開然後將網站從開發狀態移為生產狀態,很有幫助。

域名會連同其內容、設定檔、日誌檔、PHP 設定、APS 應用程式外加子域名和域名別名(如果有)一起移動到其它訂閱。

備註: 您想要將域名移動到的目標訂閱必須有足夠的資源(網站、子域名、域名別名或郵件名稱)。

若要將附加域名移動到其它訂閱,請如下操作:

  1. 轉到 網站與域名,找到您想要移動的附加域名,點按 image hamburger 圖示,然後點按 移動域名

    image move

  2. 選擇可用的訂閱然後點按 移動

移動完成後,您的域名將被分配給選定的訂閱。

備註: 移動安裝有 web 應用程式(WordPress、Joomla! 或其它)的域名不會自動移動應用程式的資料庫。這不會影響網站,但是您可能想要手動將資料庫移動到現在分配了域名的訂閱。

已知問題和局限性

  • 以下項不可移動:

    • 默認的域名(在訂閱下最先創建的域名)。
    • 沒有父級域名的子域名。
    • 沒有父級域名的域名別名。
  • 無法將域名移動到沒有主機的訂閱。

  • 無法將有郵件服務的域名移動到沒有郵件服務的訂閱。

  • 如果目標訂閱存在有相同文檔根目錄的域名,則無法移動域名。若要移動該域名,請更改其 「文檔根目錄」 值(在主機設定中)。

  • 如果具有自訂的其它 Apache 或 nginx 指令的域名被移動到了另一個訂閱,則這些指令會被保留,您可能需要對其進行檢查。

  • 如果域名被移動到了其 PHP 設定與域名的 PHP 設定不一樣的目標訂閱,該目標訂閱將被鎖定,且會顯示相關通知。

  • 如果您移動有以下兩項的域名:

    • 已安裝的 web 應用程式(WordPress、Joomla! 或其它)。
    • 和設為應用程式管理員的 Plesk 其他的用戶,

    其他的使用者將失去對應用程式的存取權限。應用程式管理員的登入名和密碼將被更改(您可以在應用程式設定中查看)。

  • 如果您將帶有郵件用戶的域名移動到屬於其它所有者的訂閱,電郵地址將會與該郵件用戶分離。

刪除網站

當您從 Plesk 中刪除域名時,所有與相應網站相關的資料都會從伺服器中刪除。

備註: 您的訂閱的主域名 - 就是為您帳戶創建的第一個域名(默認域名),無法被刪除;但是可被重命名。

要刪除域名,請執行下列步驟:

  1. 請轉到 網站與域名 ,並找到所要刪除的域名或子域名。
  2. 按一下 刪除網站刪除子域名
  3. 請確認刪除並按一下 確定

備註: 從客戶面板中移除域名不會取消這些域名的註冊。如果您已經註冊了這些域名,以後仍可把這些域名用於您的網站。