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 server warning error after upgrade
Nginx server warning error after upgrade
Hi,
Vestacp team after nginx upgrade to latest version its giving error as
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /home/xxxx/conf/web/xxxx.com.nginx.ssl.conf:10
i think its due to ssl on directive is deprecated in latest version of Nginx please update your nginx templates for next updates.
regards,
Birender
Vestacp team after nginx upgrade to latest version its giving error as
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /home/xxxx/conf/web/xxxx.com.nginx.ssl.conf:10
i think its due to ssl on directive is deprecated in latest version of Nginx please update your nginx templates for next updates.
regards,
Birender
Re: Nginx server warning error after upgrade
Just filed a bug report on this.
Affects version 1.15 and above.
http://nginx.org/en/docs/http/ngx_http_ssl_module.html
"This directive was made obsolete in version 1.15.0. The ssl parameter of the listen directive should be used instead."
In actual fact, the template uses BOTH methods, so we can probably ignore the message.
Affects version 1.15 and above.
http://nginx.org/en/docs/http/ngx_http_ssl_module.html
"This directive was made obsolete in version 1.15.0. The ssl parameter of the listen directive should be used instead."
In actual fact, the template uses BOTH methods, so we can probably ignore the message.
Code: Select all
head /usr/local/vesta/data/templates/web/nginx/default.stpl
server {
listen %ip%:%proxy_ssl_port% ssl http2;
server_name %domain_idn% %alias_idn%;
ssl on;
Re: Nginx server warning error after upgrade
Or you can change nginx-templates himself to like this:
Re: Nginx server warning error after upgrade
A small update because the warning is still present with the last version of VestaCP.
Is there a clear tutorial to change the nginx template manually ?
Is there a clear tutorial to change the nginx template manually ?
Re: Nginx server warning error after upgrade
CentOS 7, nginx 16 and the latest apache. I've tried commenting out and removing ssl=on individually and it breaks the websites completely. Is there any update on why its jank even though we are past nginx 15?
Re: Nginx server warning error after upgrade
You should comment out
# ssl on;
and instead write
listen 443 ssl;
in template file /usr/local/vesta/data/templates/web/nginx/default.stpl
# ssl on;
and instead write
listen 443 ssl;
in template file /usr/local/vesta/data/templates/web/nginx/default.stpl
Re: Nginx server warning error after upgrade
Google Translate:
I did like this:
1. Open the template
Code: Select all
/usr/local/vesta/data/templates/web/nginx/ - your template.stpl
3. In the listen line, added the ssl attribute, it turned out listen %ip%:%web_ssl_port% ssl;
4. We save, reboot, check - everything is OK, there are no errors!
Russian language:
Я сделал так:
1. Открываем шаблон
Code: Select all
/usr/local/vesta/data/templates/web/nginx/ - ваш шаблон .stpl
3. В строке listen, добавил атрибут ssl, получилось listen %ip%:%web_ssl_port% ssl;
4. Сохраняем, перезагружаем, проверяем - все ок, ошибок нет!