Thursday, August 8, 2013

Ubuntu Apache: how to hide server version and operation system from users?

1, find the file: conf.d/security
root@cmnew:/etc/apache2# less /etc/apache2/conf.d/security

2, change two parts;
ServerTokens Prod
ServerSignature Off

2, restart apache
root@cmnew:/etc/apache2# /etc/init.d/apache2 restart



No comments:

Post a Comment