Remove "Server:" from Response Headers in Apache Server

I am trying to remove "Server:" Header from Apache response headers. I found a lot of tutorials there but all of them shows how to hide version information from "Server" header.

So far I tried:

ServerSignature Off
ServerTokens ProductOnly

But it still outputs "Server: Apache" in response headers.

Is there any way I can completely turn this header off?

1

1 Answer

Use mod_headers, configure with (second is for error conditions like not found):

Header unset Server
Header always unset Server
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest