nginx fails to start after adding a web domain
Posted: Thu Feb 08, 2018 5:13 pm
Hi,
I started experiencing strange issue after adding new domains. I am not sure if upgrading packages or updating VestaCP caused it but all of the sudden it stopped generating nginx.conf and sngingx.conf files automatically as it used to upon adding new web domains in home/user/conf/web folder. Now it only generates example.com.nginx.conf files instead.
Cannot restart the nginx server after new web domain has been added due to this error:
So I have to remove this line
from this conf file manually in order to be able start the nginx again
When I ran apt-get upgrade, I kept all my config files untouched.
I run my VPS on Ubuntu 16.04, latest VestaCP version, nginx version 1.13.8 + ( PHP-FPM 7.0.22 ).
Does anybody know what would be the best approach to fix this issue, please?
Thank you
I started experiencing strange issue after adding new domains. I am not sure if upgrading packages or updating VestaCP caused it but all of the sudden it stopped generating nginx.conf and sngingx.conf files automatically as it used to upon adding new web domains in home/user/conf/web folder. Now it only generates example.com.nginx.conf files instead.
Cannot restart the nginx server after new web domain has been added due to this error:
Code: Select all
nginx -t -c /etc/nginx/nginx.conf
nginx: [emerg] open() "/home/user/conf/web/example.com.auth" failed (2: No such file or directory) in /home/user/conf/web/example.com.nginx.conf:43
nginx: configuration file /etc/nginx/nginx.conf test failed
So I have to remove this line
Code: Select all
include /home/user/conf/web/example.com.auth;
from this conf file manually in order to be able start the nginx again
Code: Select all
/home/user/conf/web/example.com.nginx.conf
I run my VPS on Ubuntu 16.04, latest VestaCP version, nginx version 1.13.8 + ( PHP-FPM 7.0.22 ).
Does anybody know what would be the best approach to fix this issue, please?
Thank you