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

Server response header is not getting cleared #161

Open
somnathpawar opened this issue Jun 17, 2024 · 0 comments
Open

Server response header is not getting cleared #161

somnathpawar opened this issue Jun 17, 2024 · 0 comments

Comments

@somnathpawar
Copy link

I want to clear the server information from the Nginx response header "Server". I tried following things:
more_set_headers 'Server: my-server';
more_clear_headers 'Server';

But somehow, it is not hiding a Server header and showing nginx/1.14.0 (Ubuntu) as full details on the server. Any idea?

The header works fine for clearing other headers such as "Content-Type" or "Content-encoding" but not working for "Server" header.

Thanks in advance!

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

No branches or pull requests

1 participant