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.