In this section, we will describe general Plesk server settings. These settings include a set of parameters related to statistics and miscellaneous options such as server-wide permissions for customers. To change the general server settings, go to Tools & Settings > Server Settings (under “General Settings”).

image 74995

统计选项

您可以配置以下的统计相关的选项:

  • “Retain web and traffic statistics for”

    在此处您可以设置服务器将存储由 Webalizer 或 AWstats 程序收集的 web 统计和流量统计的时段。默认 Plesk 会保留前三个月的数据。

  • “Include in the disk space usage calculation”

    在此处您可以选择 Plesk 在计算磁盘空间使用量时计入的对象类型。

  • (Plesk for Linux) “When calculating disk space usage, count”

    该选项能够让您定义 Plesk 将如何计算每个对象使用的磁盘空间:按使用的磁盘空间大小或容量。欲了解 Plesk 如何计算磁盘空间使用量的信息,请参阅 关于磁盘空间使用量计算

  • “Include in the traffic calculation”

    在此处您可以选择 Plesk 在计算流量时将要计入的流量类型:入站、出站或两者。

其他选项

除了与统计相关的设置,您还可以编辑以下设置:

  • “Full hostname”

    该 Plesk 服务器的主机名。

  • “Forbid users to create DNS subzones in other users’ DNS superzones”

    当一个客户创建一个域名时,不仅可以指定二级域名(如 example.com) 同时还可以指定三级或更低级的域名,例如 doc.example.com 。当一个客户创建 doc.example.com 而原始域名 example.com 是其他客户所创建时,如果选定了相应的选项系统将不允许创建此类子域名。

    我们建议您选择该选项。否则,用户将可以创建假子域名并设置网站和邮件帐户用于发送垃圾邮件甚至用于从事钓鱼或身份窃取。

  • “Forbid customers to change the name of their system user”

    当您为一个主机客户添加一个订阅时,您会指定一个与该订阅相关联的系统用户名。代表该用户,客户可以通过 FTP 或 SSH 访问服务器,操作文件系统,等等。

    默认允许客户更改与其订阅相关联的系统用户名。使用该选项来阻止客户修改这些名称。

    注解: 该选项仅对没有 主机管理 权限的客户有效。该权限能够让客户修改系统用户的名称(即使选择了该选项)。

  • “Forbid customers and resellers to change their main domain name”

    Plesk creates the main domain of a subscription and the subscription at the same time. The main domain name matches the subscription name. You can prohibit customers and resellers from changing their main domain name by selecting the corresponding setting. The selected setting does not prevent you or additional Plesk administrators from changing names of customers’ and resellers’ subscriptions.

  • “Preferred domain for websites”

IP Address Anonymization and Log Rotation

Under GDPR, IP addresses are considered to be personal data. To protect your customers’ and resellers’ data and to make your server GDPR compliant, you can do the following:

  • Anonymize IP addresses in web statistics and mail logs.
  • Force daily log rotation for all domains and service plans.

image rotation and anonymization

The IP address anonymization feature works differently in Plesk for Linux and Windows:

  • (Plesk for Linux) The feature sets the last octet of IPv4 and the last group of IPv6 addresses to zeros. Plesk anonymizes IP addresses only during log rotation and only in the following logs:
    • /var/log/httpd/*
    • /var/log/nginx/*
    • /var/log/maillog
    • /var/log/fail2ban.log
    • /var/log/modsec_audit.log
    • /var/www/vhosts/*/logs/*
  • (Plesk for Windows) The feature disables logging of customers’ and resellers’ IP addresses in IIS, FTP, and mail logs. IP addresses anonymization works when the corresponding option is enabled regardless of log rotation.

Enabled log rotation ensures that personal data in logs are stored no longer than necessary (see Article 5 (1)(e) of GDPR).

Log rotation automatically deletes log files older than the specified date. The server-wide log rotation settings overwrite those for particular domains and service plans (existing and future ones). In Plesk for Linux, log rotation affects the following logs:

  • /var/log/nginx/*
  • /var/log/maillog
  • /var/www/vhosts/*/logs/*
  • /var/log/plesk/xferlog.processed
  • /var/log/fail2ban.log
  • /var/log/modsec_audit.log

To make your server GDPR compliant:

  1. Go to Tools & Settings > Server Settings (under “General Settings”).
  2. Select “Anonymize IP addresses during log rotation and collecting of web statistics” (Plesk for Linux) or “Disable IP logging in IIS, FTP and mail logs” (Plesk for Windows).
  3. Select “Force daily log rotation for all domains” and keep “7” in the number of days log files are stored. It is not recommended to store log files longer than seven days.
  4. Click OK.