nginx-v1.20.1 ./configure编译动态模块问题

以下是Docker文件

FROM owasp/modsecurity-crs:v3.3.2-nginx
WORKDIR /nginx-1.20.1
RUN apt-get -y update
RUN apt-get install -y git
RUN git clone https://github.com/openresty/headers-more-nginx-module.git
RUN ./configure --with-compat --add-dynamic-module=headers-more-nginx-module
RUN make modules
RUN ["cp","objs/ngx_http_headers_more_filter_module.so", "/etc/nginx/modules"]
WORKDIR /

出现bash: ./configure: 没有那个文件或目录

但在nginx-1.15.12上可以正常工作。

原文链接 https://stackoverflow.com/questions/69280209

点赞