Page 1 of 1

Nginx not working

Posted: Sun Jul 06, 2014 10:14 am
by Dilstar
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

Re: Nginx not working

Posted: Sun Jul 06, 2014 8:18 pm
by imperio
Do you solved this problem?

Re: Nginx not working

Posted: Mon Jul 21, 2014 7:00 pm
by droopy
Same problem for me. Any ideas to solve it?

Re: Nginx not working

Posted: Mon Jul 21, 2014 8:24 pm
by imperio
What operating system on your server?

Re: Nginx not working

Posted: Tue Jul 22, 2014 1:48 pm
by droopy
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.

Re: Nginx not working

Posted: Mon Jul 28, 2014 4:24 pm
by erldcrtz
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
Solution:

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

Posted: Tue Jul 29, 2014 11:23 pm
by droopy
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.

Re: Nginx not working

Posted: Wed Jul 30, 2014 9:05 pm
by imperio
Seems a bug on vestacp. I have disable nginx on the webaccount configuration to bypass this bug.
Write more about this problem

Re: Nginx not working

Posted: Thu Jul 31, 2014 9:03 pm
by erldcrtz
imperio wrote:
Seems a bug on vestacp. I have disable nginx on the webaccount configuration to bypass this bug.
Write more about this problem
vestacp is adding httpd.conf in /etc/nginx/conf.d/vesta.conf

Re: Nginx not working

Posted: Thu Jul 31, 2014 9:05 pm
by erldcrtz
droopy 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.
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 nginx