去掉 server nginx 响应头
This commit is contained in:
+3
-1
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user