Skip to content

Instantly share code, notes, and snippets.

@facundofarias
Last active August 29, 2015 14:22
Hide Apache information with ServerTokens and ServerSignature directives (CentOS + Httpd24)
# Open httpd.conf file
$ vi httpd.conf
# Append/modify config directive as follows:
ServerSignature Minimal
ServerTokens Prod
Header always append X-Frame-Options SAMEORIGIN
# Save and close the file. Then, check the configurations
$ apachectl configtest
# Restart Apache web server:
$ service httpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment