We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
nginx: [emerg] unexpected "}"
nginx: [emerg] unexpected "}"
парни привет
ставил сегодня вашу панель в виде nginx + php-fpm и столкнулся с проблемой
при проверке статуса nginx через nginx -t получаю ошибку
это происходит сразу после установки - еще ничего не вносил в nginx.conf
сам конфиг примитивен
при попытке поставить точку с запятой в конце 44-й строки
получаю другую ошибку
при комментировании строки
корень сайта видится как пустой
что делать? как быть?
не первый год работаю с вашей панелью, но на nginx + apache такого не встречал
upd: или я туплю?
ставил сегодня вашу панель в виде nginx + php-fpm и столкнулся с проблемой
при проверке статуса nginx через nginx -t получаю ошибку
Code: Select all
nginx: [emerg] unexpected "}" in /home/admin/conf/web/nginx.conf:44
nginx: configuration file /etc/nginx/nginx.conf test failed
сам конфиг примитивен
Code: Select all
server {
listen 123.456.789.000:80;
server_name site-here.ru www.site-here.ru;
root /home/admin/web/site-here.ru/public_html;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/site-here.ru.log combined;
access_log /var/log/nginx/domains/site-here.ru.bytes bytes;
error_log /var/log/nginx/domains/site-here.ru.error.log error;
location / {
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass 127.0.0.1:9002;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
error_page 403 /error/404.html;
error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html;
location /error/ {
alias /home/admin/web/site-here.ru/document_errors/;
}
location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;
}
location /vstats/ {
alias /home/admin/web/site-here.ru/stats/;
include /home/admin/conf/web/site-here.ru.auth
}
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include /etc/nginx/conf.d/webmail.inc*;
include /home/admin/conf/web/nginx.site-here.ru.conf*;
}
Code: Select all
include /home/admin/conf/web/site-here.ru.auth
Code: Select all
nginx: [emerg] open() "/home/admin/conf/web/site-here.ru.auth" failed (2: No such file or directory) in /home/admin/conf/web/nginx.conf:43
nginx: configuration file /etc/nginx/nginx.conf test failed
Code: Select all
include /home/admin/conf/web/site-here.ru.auth
что делать? как быть?
не первый год работаю с вашей панелью, но на nginx + apache такого не встречал
upd: или я туплю?
Re: nginx: [emerg] unexpected "}"
Аналогичная проблема, после обновления Nginx не стартует с такой же ошибкой... Ребилды не помогают, сервер в итоге в дауне вместе с кучей сайтов... Centos 7, php-fpm
Last edited by abst on Tue Jan 02, 2018 6:51 pm, edited 1 time in total.
Re: nginx: [emerg] unexpected "}"
Выполните правила форумаabst wrote:Аналогичная проблема, после обновления Nginx не стартует с такой же ошибкой... Ребилд не помогает...
Re: nginx: [emerg] unexpected "}"
Профиль то я заполнил, но что если у меня 5 серверов apache + nginx и еще 3 nginx + php-fpm? Используемый шаблон Wordpress2, но проблема не только в нем.imperio wrote:Выполните правила форумаabst wrote:Аналогичная проблема, после обновления Nginx не стартует с такой же ошибкой... Ребилд не помогает...
В 55 строке конфига nginx в новой версии:
Code: Select all
include /home/sberkurs/conf/web/domain.ru.auth
Code: Select all
include /home/sberkurs/web/sberkurs.ru/stats/auth.conf*;
Code: Select all
*;