Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Nginx not working

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
Dilstar
Posts: 2
Joined: Sun Jul 06, 2014 10:12 am

Nginx not working
  • Quote

Post by Dilstar » Sun Jul 06, 2014 10:14 am

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
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Nginx not working
  • Quote

Post by imperio » Sun Jul 06, 2014 8:18 pm

Do you solved this problem?
Top

droopy
Posts: 40
Joined: Wed Jun 11, 2014 11:50 pm

Re: Nginx not working
  • Quote

Post by droopy » Mon Jul 21, 2014 7:00 pm

Same problem for me. Any ideas to solve it?
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Nginx not working
  • Quote

Post by imperio » Mon Jul 21, 2014 8:24 pm

What operating system on your server?
Top

droopy
Posts: 40
Joined: Wed Jun 11, 2014 11:50 pm

Re: Nginx not working
  • Quote

Post by droopy » Tue Jul 22, 2014 1:48 pm

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.
Top

erldcrtz
Posts: 73
Joined: Tue Jun 10, 2014 6:16 am

Re: Nginx not working
  • Quote

Post by erldcrtz » Mon Jul 28, 2014 4:24 pm

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.
Top

droopy
Posts: 40
Joined: Wed Jun 11, 2014 11:50 pm

Re: Nginx not working
  • Quote

Post by droopy » Tue Jul 29, 2014 11:23 pm

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.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Nginx not working
  • Quote

Post by imperio » Wed Jul 30, 2014 9:05 pm

Seems a bug on vestacp. I have disable nginx on the webaccount configuration to bypass this bug.
Write more about this problem
Top

erldcrtz
Posts: 73
Joined: Tue Jun 10, 2014 6:16 am

Re: Nginx not working
  • Quote

Post by erldcrtz » Thu Jul 31, 2014 9:03 pm

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
Top

erldcrtz
Posts: 73
Joined: Tue Jun 10, 2014 6:16 am

Re: Nginx not working
  • Quote

Post by erldcrtz » Thu Jul 31, 2014 9:05 pm

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
Top


Post Reply
  • Print view

10 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password