Created
August 26, 2016 15:36
-
-
Save vhuerta/d4a280643beba265da89b8706d00437c to your computer and use it in GitHub Desktop.
Compile apache mod_headers from source
This file contains hidden or 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
sudo su - | |
wget http://www-eu.apache.org/dist//httpd/httpd-2.2.31.tar.gz | |
tar -xzvf httpd-2.2.31.tar.gz | |
cd httpd-2.2.31/modules/metadata/ | |
/path/to/apache/bin/apxs -i -a -c mod_headers.c | |
nano /path/to/apache/httpd.conf | |
# AGREGAR ESTA LINEA AL FINAL DEL ARCHIVO | |
# Header always append X-Frame-Options DENY | |
/path/to/apache/apachectl configtest | |
/path/to/apache/apachectl restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment