Page 1 of 1
Nginx server warning error after upgrade
Posted: Wed Jun 06, 2018 9:58 am
by birender
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
Re: Nginx server warning error after upgrade
Posted: Fri Jun 08, 2018 3:02 am
by plutocrat
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.
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
Posted: Mon Jun 11, 2018 8:31 am
by ahouse
Or you can change nginx-templates himself to like this:
Re: Nginx server warning error after upgrade
Posted: Sat May 25, 2019 8:20 pm
by Spheerys
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 ?
Re: Nginx server warning error after upgrade
Posted: Mon Jun 24, 2019 3:44 am
by cvondra
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
Posted: Tue Aug 13, 2019 4:10 am
by RocketSam
You should comment out
# 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
Posted: Mon Feb 17, 2020 11:28 pm
by Ivanus
Spheerys wrote: ↑Sat May 25, 2019 8:20 pm
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 ?
Google Translate:
I did like this:
1. Open the template
Code: Select all
/usr/local/vesta/data/templates/web/nginx/ - your template.stpl
2. ssl on; - delete (or comment out #ssl on;)
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
2. ssl on; - удалить (или закомментировать #ssl on;)
3. В строке listen, добавил атрибут ssl, получилось
listen %ip%:%web_ssl_port% ssl;
4. Сохраняем, перезагружаем, проверяем - все ок, ошибок нет!