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 server warning error after upgrade

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
birender
Posts: 26
Joined: Fri Aug 19, 2016 6:58 am

Os: Debian 8x
Web: nginx + php-fpm
Nginx server warning error after upgrade
  • Quote

Post by birender » Wed Jun 06, 2018 9:58 am

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
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: Nginx server warning error after upgrade
  • Quote

Post by plutocrat » Fri Jun 08, 2018 3:02 am

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

ahouse
Posts: 171
Joined: Fri Sep 01, 2017 1:05 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Nginx server warning error after upgrade
  • Quote

Post by ahouse » Mon Jun 11, 2018 8:31 am

Or you can change nginx-templates himself to like this:

Image
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: Nginx server warning error after upgrade
  • Quote

Post by Spheerys » 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 ?
Top

cvondra
Posts: 8
Joined: Thu May 30, 2019 3:05 am

Os: CentOS 6x
Web: apache + nginx
Re: Nginx server warning error after upgrade
  • Quote

Post by cvondra » Mon Jun 24, 2019 3:44 am

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

RocketSam
Posts: 1
Joined: Tue Aug 13, 2019 4:08 am

Os: Ubuntu 17x
Web: apache + nginx
Re: Nginx server warning error after upgrade
  • Quote

Post by RocketSam » Tue Aug 13, 2019 4:10 am

You should comment out
# ssl on;
and instead write
listen 443 ssl;

in template file /usr/local/vesta/data/templates/web/nginx/default.stpl
Top

Ivanus
Posts: 7
Joined: Mon Feb 17, 2020 11:19 pm

Os: Debian 8x
Web: nginx + php-fpm
Re: Nginx server warning error after upgrade
  • Quote

Post by Ivanus » Mon Feb 17, 2020 11:28 pm

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. Сохраняем, перезагружаем, проверяем - все ок, ошибок нет!
Top


Post Reply
  • Print view

7 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
 

 

cron

Login  •  Register

I forgot my password