Skip to content

Server response header is not getting cleared #161

@somnathpawar

Description

@somnathpawar

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions