Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Server Header Override #1761

Closed
antoniovalenzuela opened this issue Oct 1, 2022 · 1 comment
Closed

Server Header Override #1761

antoniovalenzuela opened this issue Oct 1, 2022 · 1 comment

Comments

@antoniovalenzuela
Copy link

antoniovalenzuela commented Oct 1, 2022

pagespeed override the "more_clear_headers" module

Test options, but header returns "Server: Nginx"

more_clear_headers Server;
more_set_headers "Server:";

Nginx v1.22.1
pagespeed v1.13.35.2

./configure --prefix=/etc/nginx \
--add-module=headers-more-nginx-module \
--add-dynamic-module=../incubator-pagespeed-ngx-1.13.35.2-stable --with-compat \
....

image

@antoniovalenzuela
Copy link
Author

antoniovalenzuela commented Oct 1, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant