Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove nginx from response headers and error responses #406

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/nginx/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ popd
echo "Extracting nginx..."
tar xzvf nginx/nginx-1.25.2.tar.gz

sed -i 's@"nginx/"@"-/"@g' nginx-1.25.2/src/core/nginx.h
sed -i 's@r->headers_out.server == NULL@0@g' nginx-1.25.2/src/http/ngx_http_header_filter_module.c
sed -i 's@r->headers_out.server == NULL@0@g' nginx-1.25.2/src/http/v2/ngx_http_v2_filter_module.c
sed -i 's@<hr><center>nginx</center>@@g' nginx-1.25.2/src/http/ngx_http_special_response.c

echo "Building nginx..."
pushd nginx-1.25.2
./configure \
Expand Down
5 changes: 5 additions & 0 deletions packages/nginx_webdav/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ tar xzvf nginx/nginx-1.25.2.tar.gz
echo "Extracting webdav extensions"
tar xzvf nginx/nginx-dav-ext-module-3.0.0.tar.gz

sed -i 's@"nginx/"@"-/"@g' nginx-1.25.2/src/core/nginx.h
sed -i 's@r->headers_out.server == NULL@0@g' nginx-1.25.2/src/http/ngx_http_header_filter_module.c
sed -i 's@r->headers_out.server == NULL@0@g' nginx-1.25.2/src/http/v2/ngx_http_v2_filter_module.c
sed -i 's@<hr><center>nginx</center>@@g' nginx-1.25.2/src/http/ngx_http_special_response.c

echo "Building nginx..."
pushd nginx-1.25.2
./configure \
Expand Down