how to hide server name in the response headder

Avatar

Avatar
Level 1
bharathravi
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
bharathravi
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
bharathravi
Level 1

12-01-2021

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back
Employee
Mariia_Lukianet
Employee

Likes

15 likes

Total Posts

11 posts

Correct reply

2 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Give Back
Employee
Mariia_Lukianet
Employee

Likes

15 likes

Total Posts

11 posts

Correct reply

2 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Mariia_Lukianet
Employee

13-01-2021

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 

Answers (1)

Answers (1)

Avatar

Avatar
Validate 25
MVP
PuzanovsP
MVP

Likes

140 likes

Total Posts

543 posts

Correct reply

165 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 10
View profile

Avatar
Validate 25
MVP
PuzanovsP
MVP

Likes

140 likes

Total Posts

543 posts

Correct reply

165 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 10
View profile
PuzanovsP
MVP

13-01-2021

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