Nginx not working
Nginx not working
After installation it was working fine but today its not running, just stopped.
service nginx restart
nginx: [emerg] unexpected "}" in /home/admin/conf/web/nginx.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
resolve the issue
thanks
service nginx restart
nginx: [emerg] unexpected "}" in /home/admin/conf/web/nginx.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
resolve the issue
thanks
Re: Nginx not working
Do you solved this problem?
Re: Nginx not working
Same problem for me. Any ideas to solve it?
Re: Nginx not working
What operating system on your server?
Re: Nginx not working
I think nginx is not stable. I have read plenty of bugs on internet and many servers down.
Disable nginx on the web part of the domain, works ok?
So we keep only apache for webpage, php and database.
regards.
Disable nginx on the web part of the domain, works ok?
So we keep only apache for webpage, php and database.
regards.
Re: Nginx not working
Solution:Dilstar wrote:After installation it was working fine but today its not running, just stopped.
service nginx restart
nginx: [emerg] unexpected "}" in /home/admin/conf/web/nginx.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
resolve the issue
thanks
1. delete all web accounts under admin (if you have important accounts in admin then skip this)
2. open /etc/nginx/conf.d/vesta.conf and delete the following line
include /home/admin/conf/web/httpd.conf;
3. restart nginx
default.domain is going to come back automatically and when it does, check this file again for any httpd.conf
/etc/nginx/conf.d/vesta.conf
for some reason vestacp is adding httpd.conf in /etc/nginx/conf.d/vesta.conf
it must be vesta bug but this is going to be hard to reproduce because it just come to me out of no where after playing around with admin web accounts.
Re: Nginx not working
Thanks, i will test this.
Seems a bug on vestacp. I have disable nginx on the webaccount configuration to bypass this bug.
Hope the vesta crew fix this urgent as it is horrible not to login to panel just after few days of installation.
regards.
Seems a bug on vestacp. I have disable nginx on the webaccount configuration to bypass this bug.
Hope the vesta crew fix this urgent as it is horrible not to login to panel just after few days of installation.
regards.
Re: Nginx not working
Write more about this problemSeems a bug on vestacp. I have disable nginx on the webaccount configuration to bypass this bug.
Re: Nginx not working
vestacp is adding httpd.conf in /etc/nginx/conf.d/vesta.confimperio wrote:Write more about this problemSeems a bug on vestacp. I have disable nginx on the webaccount configuration to bypass this bug.
Re: Nginx not working
I already mention the solution... check this /etc/nginx/conf.d/vesta.conf .... if you see any httpd.conf in the lines .. remove it .. save new changes ... and restart nginxdroopy wrote:Thanks, i will test this.
Seems a bug on vestacp. I have disable nginx on the webaccount configuration to bypass this bug.
Hope the vesta crew fix this urgent as it is horrible not to login to panel just after few days of installation.
regards.