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

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/

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Demo ทดลองใช้งาน Plesk Control Panel

Demo Plesk Admin – 10 domains Login: admin Password: panel...

แก้ปัญหาลิงก์ภาษาไทย WordPress บน IIS หรือ Parallels Plesk

เปิดไฟล์ web.config ก็อปโค้ดด้านล่างไปวางแทน <?xml version="1.0" encoding="UTF-8"?>...

วิธีการเปลี่ยน IP ของ Plesk server?

How to change the IP address of Plesk server? Connect to the server using SSH. Generate a...

วิธี Update Disk Usage ใน Plesk?

Connect to the server via SSH or RDP. Use the statistics utility to calculate web page...