075-845-490 | 097-165-2449
Line ID: @hostnakhonitech
🎉 โปรโมชั่นพิเศษ! ลด 10% สำหรับลูกค้าใหม่
NakhoniTech
075-845-490
support@NakhoniTech.com

กำหนดค่า Virtual Host Configuration Files Print

  • 0

Configuration settings of each virtual host are stored in its
configuration files in the
/var/www/vhosts/system/ <domain_name> /conf/ directory.
Particularly, these files are the following:

  • <version> _httpd.conf – Apache virtual host configuration.
  • <version> _nginx.conf – nginx configuration.

The final Apache configuration will include all httpd.conf and
nginx.conf files from all virtual hosts.

Plesk lets administrators and domain owners see the history of changes
in a virtual host configuration files by saving each version of these
files. <version> here is a unique number assigned to a certain
configuration state that is used now or was used previously. To let
administrators and domain owners easily access the currently used
configuration file, Plesk stores the links last_httpd.conf and
last_nginx.conf that point to the corresponding files.

The system re-generates the configuration files after each change of
virtual host configuration, for example, changing the hosting type of a
domain. Therefore, if you edit httpd.conf and nginx.conf files
manually, your changes will be lost after changing the virtual host
settings in the Plesk UI. To avoid this, additional files are used to
specify custom configuration for domains:

  • vhost.conf and vhost_ssl.conf – custom Apache directives for
    two situations: when clients access the site over HTTP and HTTPS
    respectively. These files are included in the httpd.conf.
  • vhost_nginx.conf – custom nginx directives. This file is included
    in the nginx.conf.

The files with custom per-domain configuration are stored in the
/var/www/vhosts/system/ <domain_name> /conf/ directory.

Most of the settings specified in these files override the server-wide
configuration of a virtual host (httpd.…

บทความจาก https://www.plesk.com/kb/docs/virtual-host-configuration-files/


Was this answer helpful?

« Back