The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adding Mod Headers

Discussion in 'General Discussion' started by sanket, Feb 9, 2004.

  1. sanket

    sanket Member

    Joined:
    Dec 17, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    Check to see if the appropriate LoadModule lien is in your httpd.conf

    grep your httpd.conf for "mod_headers"
     
  3. sanket

    sanket Member

    Joined:
    Dec 17, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    Ahhh, cool cool. Wasn't quite clear, yeah APXS is great for adding modules ;)
     
Loading...

Share This Page