Compiling mod_headers into Apache with cPanel
mod_headers is an extension modules of Apache 1.x and 2.x which allow customization of HTTP response headers. Details on the mod_headers can be found on the Apache 1.1 mod_headers and Apache 2.0 mod headers page.
Here’s some easy steps to compile it to your cPanel Apache server:
1. Make a backup copy of your httpd.conf by running cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak ( or any file name that you like )
2. cd /home/cpapachebuild/buildapache/apache_1.x.xx/src/modules/standard – if you do not see the directory of apache_1.x.xx, download the apache source file from the Apache Download page to /home/cpapachebuild/buildapache/ and untar it.
3. /usr/local/apache/bin/apxs -c mod_headers.c
4. /usr/local/apache/bin/apxs -i -a -n headers mod_headers.so
This will compile the mod_headers to the Apache and add in the configuration lines to the httpd.conf file as well.
Run a apachectl configtest as well to make sure it is Syntax-error free. Restart the Apache services and you are done.
Post comment
Categories
Recent Posts
- yum update – TypeError: unsubscriptable object
- Magento with Windows IIS
- Helm3 : File Manager Not Showing any Files
- Helm4 Error on Remove Domain
- SQL 2008 Maintenance Plan Execution Error
Recent Comments
- tbx on Cannot create Windows Service for MySQL.Error:0
- bhumi on Cannot create Windows Service for MySQL.Error:0
- Sue on Cannot create Windows Service for MySQL.Error:0
- Shubham on Cannot create Windows Service for MySQL.Error:0
- Tommy on Cannot create Windows Service for MySQL.Error:0

