Question
How to modify the domain’s web server configurations in Plesk permanently?
Answer
The recommended way to modify virtual hosts settings is using Plesk interface in Domains > example.com > Apache & nginx settings or in Service Plans menu. However, it is possible to edit the default templates located at /usr/local/psa/admin/conf/templates
Refer to this documentation page for more instructions:
Changing Virtual Host Settings Using Configuration Templates
Warning: Do not change the default templates. To introduce your changes to the configuration, copy the required templates to the
directory, preserving the directory structure, and then modify these copies. It is possible to create new templates from scratch and place them in the
/usr/local/psa/admin/conf/templates/custom/
directory according to the default structure.
custom/