Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Dec 2003
    Posts
    5

    Default Adding Mod Headers

    Hi
    I was trying to add mod_headers to my apache but could not get any help here.
    I did a lot of reasearcha and found a simple way which does not require recompiling apache.


    $:cd /home/cpapachebuild/buildapache/apache_1.3.29/src/modules/standard
    $: /usr/local/apache/bin/apxs -c mod_headers.c
    $:/usr/local/apache/bin/apxs -i -a -n headers mod_headers.so

    this will compile and add the header to the apache along with adding the lines to httpd.conf

    check httpd.conf by running
    httpd configtest
    If everything is fine
    restart httpd by giving the command
    thats it! Now mod_headers will work with your apache.

    Generic Approach to add modules
    Generic Instructions
    Build and install a third-party Apache module, say mod_foo.c, into its own DSO mod_foo.so outside of the Apache source tree:
    Build and install via apxs: $ cd /path/to/3rdparty
    $ apxs -c mod_foo.c
    $ apxs -i -a -n foo mod_foo.so

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2003
    Posts
    647

    Default

    Check to see if the appropriate LoadModule lien is in your httpd.conf

    grep your httpd.conf for "mod_headers"

  3. #3
    Member
    Join Date
    Dec 2003
    Posts
    5

    Default i did not have a a problem

    Hi,
    Thanks for your reply.
    What i posted was a solution and not a problem.
    thanks aneways for your reply.

    Thanks/Regards
    Sanket Gupta

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2003
    Posts
    647

    Default

    Ahhh, cool cool. Wasn't quite clear, yeah APXS is great for adding modules

Similar Threads & Tags
Similar threads

  1. Adding host Headers
    By aboleth in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-15-2006, 06:48 PM
  2. Adding Bcc headers into specific email accounts on server side.
    By ramprage in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-11-2006, 10:40 PM
  3. X-Exiscan-SA headers and X-Spam headers
    By ispro in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-03-2006, 12:35 PM
  4. apache mod headers
    By chadi in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-02-2005, 12:38 PM
  5. how do i install mod headers for apache?
    By chadi in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-22-2004, 10:33 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube