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.

add mod_header to httpd.conf for w3c

Discussion in 'General Discussion' started by joecool1001, Jun 30, 2005.

  1. joecool1001

    joecool1001 Member

    Joined:
    Jun 20, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    I need an apache module installed and I'm not sure how to do it. I'm installing a w3c privacy policy and it requires mod_header to be installed and added to the httpd.conf.
    Can someone help me out with this please?

    Thank you very much in advance!
     
  2. joecool1001

    joecool1001 Member

    Joined:
    Jun 20, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi I wanted to add that I added the following line of code to my domain entry in httpd.conf...

    Header append P3P 'policyref="/w3c/p3p.xml", CP="ALL DSP COR CUR TAIo IVAo OTPo PUBo STP STA"'

    and here's the error I get...

    Invalid command 'Header', perhaps mis-spelled or defined by a module not included in the server configuration

    I'm assuming that I'm missing the module "mod_headers".

    Also, just so you know, I'm installing an affiliate program that requires this in order to track commissions properly.

    Thanks

    Any help would be appreciated. :)
     
  3. joecool1001

    joecool1001 Member

    Joined:
    Jun 20, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Can anybody help with this?

    Thanks
     
  4. MatrixPark

    MatrixPark Member

    Joined:
    Sep 20, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    How do you get mod_headers.c built

    Yes, same here.

    Have tried rebuilding apache from whm but still mod_headers is not being built so if I try to add

    AddModule mod_headers.c

    to the httpd.conf file I get an error.

    Here is a workaroundthat I am using since cPanel doesn't seem to provide mod_headers. You have to be running php and if you are, it appears you can use php to set the headers.

    <<.htaccess file>>
    php_value auto_prepend_file siteprepend.php

    <<siteprepend.php>>
    <?php
    // Set Compact Privacy Policy
    header('P3P: CP="NOI DSP CURa ADMa DEVa TAIa CONi OUR DELa BUS IND PHY ONL UNI PUR COM NAV INT DEM STA PRE"');
    ?>

    Hope it helps.
     
  5. vincentg

    vincentg Well-Known Member

    Joined:
    May 12, 2004
    Messages:
    140
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    new york
    I just setup a new server and sites that are using cookies now show the privacy icon on IE.

    When you click on it all are showing blocked
    I noticed on one affiliate ad the policy showed if you click on it.
    Others show no policy info.

    Has something changed with Apache?

    Same sites on another older server did not display this privacy icon or block the cookies.
     
Loading...

Share This Page