Skip to content

Instantly share code, notes, and snippets.

@vhuerta
Created August 26, 2016 15:36
Show Gist options
  • Save vhuerta/d4a280643beba265da89b8706d00437c to your computer and use it in GitHub Desktop.
Save vhuerta/d4a280643beba265da89b8706d00437c to your computer and use it in GitHub Desktop.
Compile apache mod_headers from source
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