Issue Summary
-
When installing a new Ghost instance on Ubuntu 24.04 with Nginx version 1.28.0, the following warnings are thrown when running
sudo nginx -t
to check the NGINX configuration for syntax errors and validity.the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/mywebsite.com-ssl.conf:7
the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/mywebsite.com-ssl.conf::8
This is due to the listen … http2
directive being deprecated in NGINX 1.25.1 per this blog article.
- What did you expect to happen?
For the install script to not use deprecated syntax when doing the automatic SSL setup and configuration.
Steps to Reproduce
- Install Ghost on Ubuntu 24.04 with Nginx version 1.28.0 and then run
sudo nginx -t
after the installation is complete.
Setup information
Ghost Version
Ghost-CLI version: 1.28.0
Ghost version: 5.130.2
Node.js Version
v22.17.1
How did you install Ghost?
Using the official install guide for Ubuntu except with Ubuntu 24.04 and Nginx version 1.28.0
Provide details of your host & operating system
Oracle Cloud / Ubuntu 24.04.2 LTS / nginx 1.28.0
Database type
MySQL 8
Browser & OS version
N/A
Relevant log / error output
the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/mywebsite.com-ssl.conf:7
the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/mywebsite.com-ssl.conf::8