How to create custom template for nginx.conf?

Created:

2017-06-14 13:33:20 UTC

Modified:

2017-08-10 13:05:18 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to create custom template for nginx.conf?

Question

How to create a custom template for nginx.conf?

Answer

It is required configure custom Nginx templates to change default /var/www/vhosts/system/example.com/conf/nginx.conf file.


Create directory /usr/local/psa/admin/conf/templates/custom/

# mkdir /usr/local/psa/admin/conf/templates/custom/


Copy /usr/local/psa/admin/conf/templates/default/domain/nginxDomainVirtualHost.php in it

# cp /usr/local/psa/admin/conf/templates/default/domain/nginxDomainVirtualHost.php /usr/local/psa/admin/conf/templates/custom/nginxDomainVirtualHost.php

and perform desirable changes.
Please refer https://docs.plesk.com/en-US/onyx/administrator-guide/web-servers/apache-and-nginx-web-servers-linux.71933/ for additional details.

Have more questions? Submit a request
Please sign in to leave a comment.