• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Nginx domain .conf file blank

Imad S

New Pleskian
Hey,

I recently needed to make some changes to the domain.conf file at the following path: /etc/nginx/plesk.conf.d/vhosts. When I try to edit the file it just has 3 lines at the top warning me that the changes made here would not persist, while other domain confs have full configs inside.

I am positive that the domain in question is set to use nginx, double checked this, so what gives? Why is the file blank?
 
Hi Imad S,

first, the configuration files at "/etc/nginx/plesk.conf.d/vhosts" are symlinks to the domain specific domain configuration files at "/var/www/vhosts/system/YOURDOMAIN.COM/conf" and should not be edited. If you would like to make additional settings to these files, please use the "Additional NGINX directive" box in your domain specific webserver settings, this will result in additional entries with your definitions in your "/var/www/vhosts/system/YOURDOMAIN.COM/conf/vhost_nginx.conf" ( for NGINX ) and if you would like to modify the apache config file for that domain ( Additional APACHE directive - box ), then these changes will appear in the "/var/www/vhosts/system/YOURDOMAIN.COM/conf/vhost.conf" file.

Sorry, I can't answer you, WHY you seem to have a blank nginx configuration file for a specific domain, neither can any one else guess what happened on your system, without investigations of logs and configuration files - but you are always able to re-configure ( generate ) these files with the commands:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
or
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain YOURDOMAIN.COM
 
Thank you for the reply, I did in fact try reconfigure all command, but it still appears to be empty.

I've noticed that as soon as I add a custom template for nginx with a custom port, a apache server on port 80 spawns in it's place. I need to put varnish in front of nginx. I understand it isn't officially supported but I thought I could hack the server to get it to work.
 
Back
Top