Riassunto: To host websites, Plesk for Linux uses the Apache and/or Nginx webservers. For the websites to work correctly, their configuration files must be in order.

In this topic, you will learn about the structure of Apache and Nginx configuration files in Plesk for Linux.

Note: this topic explains how Plesk works «under the hood». It is not useful to anyone without Linux system administration experience.

File di configurazione Apache

Tutti i file di configurazione Apache specifici per Plesk sono inclusi nella configurazione di sistema di Apache (per impostazione predefinita, /etc/httpd/httpd.conf ) tramite il file zz010_psa_httpd.conf secondo la direttiva Include. Il file zz010_psa_httpd.conf può trovarsi in /etc/apache2/conf.d/ o /etc/httpd/conf.d/ in base al sistema operativo.

The following list represents the hierarchy of Apache configuration files.

  • /etc/httpd/httpd.conf
    • => /etc/httpd/conf.d/zz010_psa_httpd.conf
      • => /etc/httpd/conf/plesk.conf.d/server.conf
        • => /etc/httpd/conf/plesk.conf.d/ip_default/@<domain_name>.conf -> /var/www/vhosts/system/<domain_name>/conf/httpd_ip_default.conf
      • => /httpd/conf/plesk.conf.d/horde.conf
        • => /httpd/conf/plesk.conf.d/webmails/horde/<domain_name>_webmail.conf
      • => /httpd/conf/plesk.conf.d/roundcube.conf
        • => /httpd/conf/plesk.conf.d/webmails/roundcube/<domain_name>_webmail.conf
      • => /httpd/conf/plesk.conf.d/atmail.conf
        • => /httpd/conf/plesk.conf.d/webmails/atmail/<domain_name>_webmail.conf
      • => /httpd/conf/plesk.conf.d/vhosts/@<domain_name>.conf -> /var/www/vhosts/system/<domain_name>/conf/last_httpd.conf
        • => /usr/local/psa/admin/conf/file_sharing.conf*
        • => /var/www/vhosts/system/<domain_name>/conf/siteapp.d/*.conf
        • => /var/www/vhosts/system/<domain_name>/conf/vhost_ssl.conf
        • => /var/www/vhosts/system/<domain_name>/conf/vhost.conf*
      • => /httpd/conf/plesk.conf.d/forwarding/<domain_name>.conf
      • => /httpd/conf/plesk.conf.d/wildcards/@<domain_name>.conf -> /var/www/vhosts/system/_<domain_name>/conf/last_httpd.conf

Il file file_sharing.conf non viene generato, ma fornito con Plesk.

I file di siteapp.d/*.conf vengono forniti con i pacchetti APS corrispondenti.

Il segnaposto <domain-name> corrisponde al nome di dominio del sito web per il quale viene generata la configurazione.

File di configurazione nginx

Tutti i file di configurazione nginx specifici per Plesk sono inclusi nella configurazione di sistema di nginx (per impostazione predefinita, /etc/httpd/nginx.conf ) tramite il file zz010_psa_nginx.conf secondo la direttiva Include. Il file zz010_psa_nginx.conf si trova in /etc/nginx/conf.d/.

The following list represents the hierarchy of nginx configuration files.

  • /etc/nginx/nginx.conf
    • => /etc/nginx/conf.d/zz010_psa_nginx.conf
      • => /etc/nginx/plesk.conf.d/server.conf
      • => /etc/nginx/plesk.conf.d/vhosts/@<domain_name>.conf -> /var/www/vhosts/system/<domain_name>/conf/last_nginx.conf
        • => /var/www/vhosts/system/<domain_name>/conf/vhost_nginx.conf
      • => /etc/nginx/plesk.conf.d/forwarding/ <domain_name> .conf

Il segnaposto <domain-name> corrisponde al nome di dominio del sito web per il quale viene generata la configurazione.