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: [emerg] unexpected "}" Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
dickbutt
Posts: 13
Joined: Mon Nov 13, 2017 5:20 pm

Os: CentOS 5x
Web: nginx + php-fpm
nginx: [emerg] unexpected "}"
  • Quote

Post by dickbutt » Wed Jan 17, 2018 2:44 am

nginx: [emerg] unexpected "}" After adding a new domain this happen and nginx cant start unless i remove the domain.
Top

dickbutt
Posts: 13
Joined: Mon Nov 13, 2017 5:20 pm

Os: CentOS 5x
Web: nginx + php-fpm
Re: nginx: [emerg] unexpected "}"
  • Quote

Post by dickbutt » Wed Jan 17, 2018 3:12 am

So this is odd because i never edited my default.tpl files and this is what i came across

location /vstats/ {
alias %home%/%user%/web/%domain%/stats/;
include %home%/%user%/conf/web/%domain%.auth <- See.. what is missing is this *; // Updated the tpl and stpl files and added that and it worked fine
}

Any idea how this happen ?
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: nginx: [emerg] unexpected "}"
  • Quote

Post by ScIT » Wed Jan 17, 2018 6:16 am

template files will not beeing toiched, also not by a vesta uodate. so no, i think there is no answer for your question.
Top

pramathesh
Posts: 12
Joined: Mon May 01, 2017 8:38 am

Re: nginx: [emerg] unexpected "}"
  • Quote

Post by pramathesh » Wed Jan 17, 2018 5:21 pm

Even I've this error. I changed nothing at my end just restarted my server and this is the error I am getting
Top

Gordon55M
Posts: 43
Joined: Tue Apr 22, 2014 8:37 pm
Contact:
Contact Gordon55M
Twitter

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: nginx: [emerg] unexpected "}"
  • Quote

Post by Gordon55M » Wed Jan 17, 2018 6:43 pm

I was having the same issue. Every time I updated the server I got the NGINX } error. Here is what I did to fix the issue:

Download the VestaCP Install from https://github.com/serghey-rodin/vesta/ ... master.zip

Unzip the contents of the zip file to your desktop and navigate to the correct folder for the template files:

Example:

Ubuntu 16.04 = \vesta-master\vesta-master\install\ubuntu\16.04\templates\web\nginx\php-fpm
or
Rhel/CentOS 6 = \vesta-master\vesta-master\install\rhel\6\templates\web\nginx\php-fpm

On your server that has VestaCP installed, replace the contents of the directory:

/usr/local/vesta/data/templates/web/nginx/php-fpm

With that from the zip file. Run an update, and NGINX should restart without issue. Of course, backup files before you try this. I did this on Ubuntu 16.04 without issue.
Top

noogen
Posts: 66
Joined: Thu Jan 05, 2017 9:20 pm

Re: nginx: [emerg] unexpected "}"
  • Quote

Post by noogen » Fri Jan 19, 2018 11:45 pm

Yes, this is a nginx config parsing issue which is fixed in the latest version per Gordon55M suggestion. Please update to v18 or directly from source for the fix. You may have to rebuild the user. Oh, and always backup first before upgrade.

ref: https://github.com/serghey-rodin/vesta/issues/1447
Top

lukeseven
Posts: 34
Joined: Mon Sep 14, 2015 2:29 pm

Re: nginx: [emerg] unexpected "}"
  • Quote

Post by lukeseven » Mon Feb 26, 2018 11:51 am

Hi,

thank you Gordon55M. You are a life saver.

I was going crazy but now all is sorted thanks to your suggestion.

Your solution worked like a charm.

Thanks again
Top

jesusjvc
Posts: 1
Joined: Fri Apr 06, 2018 4:34 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: nginx: [emerg] unexpected "}"
  • Quote

Post by jesusjvc » Fri Apr 06, 2018 4:39 am

thanks for solution
Top


Post Reply
  • Print view

8 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