We’re all familier with using a vhost.conf file on Plesk to provide custom Apache directives to an individual virtual host. Originally the file was located at:
1 |
/var/www/vhosts/domain.com/conf/vhost.conf |
Recent versions of Plesk have moved the file to:
1 |
/var/www/vhosts/system/domain.com/conf/vhost.conf |
And of course there is an SSL version of the file at:
1 |
/var/www/vhosts/system/domain.com/conf/vhost_ssl.conf |
The good news is there’s also now a file for Nginx at:
1 |
/var/www/vhosts/system/domain.com/conf/vhost_nginx.conf |
By default these files don’t exist and are not included in the configuration. So you’ll need to create the file and then run:
1 |
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all |
or
1 |
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain domain.com |