nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/site-opts.d/https.conf:2
Closed this issue · 0 comments
jaydrogers commented
Affected Docker Images
*-fpm-nginx
Docker Labels of the affected images
No response
Current Behavior
On container start, a warning appears:
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/site-opts.d/https.conf:2
Expected Behavior
This warning should not display
Steps To Reproduce
Run the container and check the log output:
docker run --rm serversideup/php:8.3-fpm-nginx
Anything else?
Proposed Fix
Here is a possible fix, but we have to wait until Alpine is on NGINX 1.26
Current configuration
server {
listen 8443 http2 ssl default_server;
listen [::]:8443 http2 ssl default_server;
# other configurations
}
Updated Configuration
server {
listen 8443 ssl default_server;
listen [::]:8443 ssl default_server;
http2 on;
# other configurations
}