diff options
| author | Zhidao HONG <z.hong@f5.com> | 2025-07-15 15:35:39 +0000 |
|---|---|---|
| committer | Roman Arutyunyan <arutyunyan.roman@gmail.com> | 2025-12-08 07:49:16 +0400 |
| commit | 9bf758ea4d5db1101296cc111f6d782045148727 (patch) | |
| tree | fd9b351bae0e35ddeb518be9dd87811b999a9241 /src/http/modules/ngx_http_proxy_module.h | |
| parent | 90a4fc793527b67678fd48b2692be09f30d8ffcf (diff) | |
| download | nginx-9bf758ea4d5db1101296cc111f6d782045148727.tar.gz nginx-9bf758ea4d5db1101296cc111f6d782045148727.tar.bz2 | |
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;
}
}
Diffstat (limited to 'src/http/modules/ngx_http_proxy_module.h')
| -rw-r--r-- | src/http/modules/ngx_http_proxy_module.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_proxy_module.h b/src/http/modules/ngx_http_proxy_module.h index 18f52d930..a0f79bc13 100644 --- a/src/http/modules/ngx_http_proxy_module.h +++ b/src/http/modules/ngx_http_proxy_module.h @@ -116,6 +116,10 @@ ngx_int_t ngx_http_proxy_rewrite_redirect(ngx_http_request_t *r, ngx_int_t ngx_http_proxy_rewrite_cookie(ngx_http_request_t *r, ngx_table_elt_t *h); +#if (NGX_HTTP_V2) +ngx_int_t ngx_http_proxy_v2_handler(ngx_http_request_t *r); +#endif + extern ngx_module_t ngx_http_proxy_module; |
