Last active
August 29, 2015 14:22
-
-
Save facundofarias/53d9322aeeed4f52b700 to your computer and use it in GitHub Desktop.
Hide Apache information with ServerTokens and ServerSignature directives (CentOS + Httpd24)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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