Skip to content

Instantly share code, notes, and snippets.

@facundofarias
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save facundofarias/53d9322aeeed4f52b700 to your computer and use it in GitHub Desktop.
Save facundofarias/53d9322aeeed4f52b700 to your computer and use it in GitHub Desktop.
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