观看视频教程

如果您的托管软件包包括一个以上的域名(网站),那么您可轻松添加域名到您的服务器。在您开始添加将使用二级域名的新域名时,如 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. 请确认删除并单击 确定

注解: 从客户面板中移除域名不会取消这些域名的注册。如果您已经注册了这些域名,以后仍可把这些域名用于您的网站。