Apache and Nginx Configuration Files

Apache configuration files

All Plesk-specific Apache configuration files are included in the Apache system configuration (/etc/httpd/httpd.conf by default) via file zz010_psa_httpd.conf using the Include directive. The file zz010_psa_httpd.conf can be located in /etc/apache2/conf.d/ or /etc/httpd/conf.d/ depending on the operating system.

The following table represents the hierarchy of Apache configuration files.

/etc/httpd/httpd.conf      
image-0 /etc/httpd/conf.d/zz010_psa_httpd.conf    
  image-1 /etc/httpd/conf/plesk.conf.d/server.conf  
    image-2 /etc/httpd/conf/plesk.conf.d/ip_default/@ <domain_name> .conf -> /var/www/vhosts/system/<domain_name>/conf/httpd_ip_default.conf
  image-3 /etc/httpd/conf/plesk.conf.d/horde.conf  
    image-4 /etc/httpd/conf/plesk.conf.d/webmails/horde/ <domain_name> _webmail.conf
  image-5 /etc/httpd/conf/plesk.conf.d/roundcube.conf  
    image-6 /etc/httpd/conf/plesk.conf.d/webmails/roundcube/ <domain_name> _webmail.conf
  image-7 /etc/httpd/conf/plesk.conf.d/atmail.conf  
    image-8 /etc/httpd/conf/plesk.conf.d/webmails/atmail/ <domain_name> _webmail.conf
  image-9 /etc/httpd/conf/plesk.conf.d/vhosts/@ <domain_name> .conf -> /var/www/vhosts/system/<domain_name>/conf/last_httpd.conf  
    image-10 /usr/local/psa/admin/conf/file_sharing.conf*
    image-11 /var/www/vhosts/system/ <domain_name> /conf/siteapp.d/*.conf
    image-12 /var/www/vhosts/system/ <domain_name> /conf/vhost_ssl.conf
    image-13 /var/www/vhosts/system/ <domain_name> /conf/vhost.conf*
  image-14 /etc/httpd/conf/plesk.conf.d/forwarding/ <domain_name> .conf  
  image-15 /etc/httpd/conf/plesk.conf.d/wildcards/@ <domain_name> .conf -> /var/www/vhosts/system/_<domain_name>/conf/last_httpd.conf  

On this diagram:

 
  • System configuration file.
 
  • Files generated by Plesk.
 
  • Files generated by Plesk from configuration templates.
 
  • Files created by user and containing custom configuration directives.

File file_sharing.conf is not generated, but shipped with Plesk.

Files from siteapp.d/*.conf are shipped with corresponding APS packages.

The placeholder <domain_name> is the domain name of the website for which the configuration is generated.

nginx configuration files

All Plesk-specific nginx configuration files are included in the nginx system configuration (/etc/httpd/nginx.conf) via file zz010_psa_nginx.conf using the Include directive. The file zz010_psa_nginx.conf is located in /etc/nginx/conf.d/.

The following table represents the hierarchy of nginx configuration files.

/etc/nginx/nginx.conf      
image-16 /etc/nginx/conf.d/zz010_psa_nginx.conf    
  image-17 /etc/nginx/plesk.conf.d/server.conf  
  image-18 /etc/nginx/plesk.conf.d/vhosts/@ <domain_name> .conf -> /var/www/vhosts/system/ <domain_name> /conf/last_nginx.conf  
    image-19 /var/www/vhosts/system/ <domain_name> /conf/vhost_nginx.conf
  image-20 /etc/nginx/plesk.conf.d/forwarding/ <domain_name> .conf  

On this diagram:

 
  • System configuration file.
 
  • Files generated by Plesk.
 
  • Files generated by Plesk from configuration templates.
 
  • Files created by user and containing custom configuration directives.

The placeholder <domain_name> is the domain name of the website for which the configuration is generated.