I am using Amazon Linux and running Apache 2.4.39.
I have added “Header unset Server” along with “ServerToken Prod” and “ServerSignature Off”.
However, I still see “Server: Apache” in the headers.
Further I tried setting Server header to null using below:
Header set Server “”
This works and shows the null header however, it works only for index.php.
I want this to work for all the pages supported by the website like .gif, admin.css etc.
Please suggest!
Thanks in advance!
2
Answers
Try my suggested fix here:
then add this to the end of
/etc/apache2/apache.conf
:and restart Apache:
Here is my contribution which appends to the file and all in one.
Example: