去掉 server nginx 响应头

This commit is contained in:
root
2026-08-14 11:50:08 +08:00
parent e048df402d
commit e64960e521
2 changed files with 3 additions and 34 deletions
+3 -1
View File
@@ -26,7 +26,9 @@ RUN ./config --prefix=/opt/tongsuo-8.4.0 --libdir=lib64 no-shared no-zlib no-thr
# ---- Nginx 1.26.2 (linked against Tongsuo) ----
WORKDIR /build
COPY nginx-1.26.2.tar.gz /build/
RUN tar -xzf nginx-1.26.2.tar.gz
COPY no-server-header.patch /build/
RUN tar -xzf nginx-1.26.2.tar.gz \
&& patch -p1 -d nginx-1.26.2 < no-server-header.patch
WORKDIR /build/nginx-1.26.2
RUN ./configure \
--prefix=/usr/local/nginx \