I want to set the Apache's header X-Frame-Options to "Deny" by adding the following line into the httpd.conf file on a single server using puppetlaps apache module.
Header set X-Frame-Options "DENY"
I have the YAML file for the server in the ../environments/data/node/server1.yaml I can edit this file to apply the config on this server only but I don't know what to put in it.
How to call the apache module so it can add the above line into the config file?
I tried the following but didn't worked:
apache::header::x-frame-options: 'DENY'
Update: Followed the advice below but still not working in my environment, l can't find another way to do it.