回答
收藏
分享
举报
添加模块ngx_http_proxy_connect_module报错
提问于2021-01-25 10:03

浏览 1.2k

文章标签

添加模块ngx_http_proxy_connect_module报错,具体信息如下,github上没找到解决方案

已修改于2023-03-17 11:10



写下您的回答
发表回答
全部回答(3)

按点赞数排序

按时间排序

这个模块修改了Nginx框架源码,所以你得先打patch,改完框架源码后,再用add-module来configure\make编译

赞同

0

回复举报

回答于2021-01-25 14:29



回复陶辉
回复

这个模块修改了主模块的代码。你需要先打一下patch.


https://github.com/chobits/ngx_http_proxy_connect_module/tree/master/patch

赞同

0

回复举报

回答于2021-01-25 13:17



回复皮皮鲁
回复

nginx1.19.6 版本,我的配置为./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-threads --add-module=/data/ngx_http_proxy_connect_module,编译时报错

赞同

0

回复举报

回答于2021-01-25 10:06



回复北城
回复
提问者
北城
这家伙很懒还未留下介绍~
0
文章
2
问答
0
粉丝
相关问答

src/os/unix/ngx_files.c:404:9: error: 'pwritev' is only available on macOS 11.0 or newer [-Werror,-Wunguarded-availability-new]
n = pwritev(file->fd, vec->iovs, vec->count, offset);
^~~~~~~

 error: 'pwritev' is only available on macOS 11.0 or newer [


是不是你的macos版本太低了?


点赞 0
浏览 1.1k

我重新下载openresty1.19.3.2

同样的操作也成功了,


点赞 0
浏览 1.9k

可以通过 proxy_set_header 设置,keepalive 。

点赞 0
浏览 955