]> git.kaiwu.me - nginx.git/commit
Proxy: added HTTP/2 proxy module.
authorZhidao HONG <z.hong@f5.com>
Tue, 15 Jul 2025 15:35:39 +0000 (15:35 +0000)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Mon, 8 Dec 2025 03:49:16 +0000 (07:49 +0400)
commit9bf758ea4d5db1101296cc111f6d782045148727
treefd9b351bae0e35ddeb518be9dd87811b999a9241
parent90a4fc793527b67678fd48b2692be09f30d8ffcf
Proxy: added HTTP/2 proxy module.

The module allows to use HTTP/2 protocol for proxying.
HTTP/2 proxying is enabled by specifying "proxy_http_version 2".

Example:

    server {
        listen 8000;

        location / {
            proxy_http_version 2;
            proxy_pass https://127.0.0.1:8443;
        }
    }

    server {
        listen 8443 ssl;
        http2 on;

        ssl_certificate certs/example.com.crt;
        ssl_certificate_key certs/example.com.key;

        location / {
            return 200 foo;
        }
    }
auto/modules
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_proxy_module.h
src/http/modules/ngx_http_proxy_v2_module.c [new file with mode: 0644]