Correggere l'errore the listen ... http2 directive is deprecated, use the http2 directive instead in nginx proxy manager: Difference between revisions
Jump to navigation
Jump to search
Created page with "Se all'avvio si vede nei log: nginx-app | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /data/nginx/proxy_host/12.conf:19 eseguire:<pre> docker compose exec nginx.crodocker01.croalliance.priv-app \ /bin/bash -c " cd /data/nginx/proxy_host && sed -i 's/listen 443 ssl http2;/listen 443 ssl;\nhttp2 on;/g' *.conf && sed -i '/^listen \[::\]:443 ssl http2;/s/ http2//' *.conf " \ | tee -a update.log </pre>In prat..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Se all'avvio si vede nei log: | Se all'avvio si vede nei log: | ||
nginx-app | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /data/nginx/proxy_host/12.conf:19 | nginx-app | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /data/nginx/proxy_host/12.conf:19 | ||
eseguire:<pre> | eseguire:<pre>docker compose exec nginx.crodocker01.croalliance.priv-app \ | ||
/bin/bash -c " | |||
cd /data/nginx/proxy_host && | |||
sed -i 's/listen 443 ssl http2;/listen 443 ssl;\nhttp2 on;/g' *.conf && | |||
sed -i '/^listen \[::\]:443 ssl http2;/s/ http2//' *.conf " \ | |||
| tee -a update.log</pre><pre> | |||
docker compose exec nginx.crodocker01.croalliance.priv-app \ | docker compose exec nginx.crodocker01.croalliance.priv-app \ | ||
/bin/bash -c " | /bin/bash -c " | ||
cd /data/nginx/ | cd /data/nginx/redirection_host && | ||
sed -i 's/listen 443 ssl http2;/listen 443 ssl;\nhttp2 on;/g' *.conf && | sed -i 's/listen 443 ssl http2;/listen 443 ssl;\nhttp2 on;/g' *.conf && | ||
sed -i '/^listen \[::\]:443 ssl http2;/s/ http2//' *.conf " \ | sed -i '/^listen \[::\]:443 ssl http2;/s/ http2//' *.conf " \ | ||
Latest revision as of 18:18, 19 January 2026
Se all'avvio si vede nei log:
nginx-app | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /data/nginx/proxy_host/12.conf:19
eseguire:
docker compose exec nginx.crodocker01.croalliance.priv-app \ /bin/bash -c " cd /data/nginx/proxy_host && sed -i 's/listen 443 ssl http2;/listen 443 ssl;\nhttp2 on;/g' *.conf && sed -i '/^listen \[::\]:443 ssl http2;/s/ http2//' *.conf " \ | tee -a update.log
docker compose exec nginx.crodocker01.croalliance.priv-app \
/bin/bash -c " cd /data/nginx/redirection_host && sed -i 's/listen 443 ssl http2;/listen 443 ssl;\nhttp2 on;/g' *.conf && sed -i '/^listen \[::\]:443 ssl http2;/s/ http2//' *.conf " \ | tee -a update.log
In pratica cambia:
listen 80; listen [::]:80;
listen 443 ssl http2; listen [::]:443 ssl http2;
in:
listen 80; listen [::]:80;
listen 443 ssl; http2 on; listen [::]:443 ssl;