how to hide server name in the response headder | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
mariia_lukianetsAccepted solution
Employee
Jan 13, 2021 9:15 AM UTC

Apache mod_headers module [1] allows you to control request/response headers, I would check that.

[1] https://httpd.apache.org/docs/current/mod/mod_headers.html 

3 replies

Peter_Puzanovs
New Participant
Jan 13, 2021 9:16 AM UTC

Hey Ravi,

 

One option is to fix this by removing this header via the Dispatcher itself. To remove it via Dispatcher:

 

First, enable mod_headers, by adding it to your main .conf file

 

LoadModule headers_module /path/to/your/lib/mod_headers.so

Following which in your .conf file add following command, where ServerName is the name of the header you want to remove from your output.

RequestHeader unset ServerName

 

Regards,

Peter

Translate
kautuk_sahni
Employee
Jan 19, 2021 1:55 PM UTC
Thank you for sharing the answer.
Translate
Kautuk Sahni
mariia_lukianetsAccepted solution
Employee
Jan 13, 2021 9:15 AM UTC

Apache mod_headers module [1] allows you to control request/response headers, I would check that.

[1] https://httpd.apache.org/docs/current/mod/mod_headers.html 

Translate