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 /auto/modules | |
| 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 'auto/modules')
| -rw-r--r-- | auto/modules | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/auto/modules b/auto/modules index 8989212b8..c199d89bf 100644 --- a/auto/modules +++ b/auto/modules @@ -781,6 +781,17 @@ if [ $HTTP = YES ]; then . auto/module fi + if [ $HTTP_PROXY = YES -a $HTTP_V2 = YES ]; then + ngx_module_name=ngx_http_proxy_v2_module + ngx_module_incs= + ngx_module_deps= + ngx_module_srcs=src/http/modules/ngx_http_proxy_v2_module.c + ngx_module_libs= + ngx_module_link=$HTTP_V2 + + . auto/module + fi + if [ $HTTP_PERL != NO ]; then ngx_module_name=ngx_http_perl_module ngx_module_incs=src/http/modules/perl |
