How do I hide service banners?

I am currently using cPanel to manage my server. I would like to hide the fact that I am using Apache.

I changed the following in /usr/local/apache/include/httpd.h:
#define SERVER_BASEVENDOR "Secure Inc."
#define SERVER_BASEPRODUCT "Secure Web"
#define SERVER_BASEREVISION "Unknown"

I then rebuilt Apache in cPanel ->Software -> Update Apache.

ServerTokens is set to "Prod".

After restarting Apache, it still dispalys "Apache" in the header.

Please let me know what I am doing wrong.

Thank you!

As a side note, is there anyway to remove the service banner from the cpanel ports? Currently it displays "cpsrvd/10.0.0".

 

 

 

 

Top