title: Unable to set X-Frame Options on apache 2.4.18 server running on Ubuntu 16.04 lts
body: <p>I am trying to set the X-Frame-Options to Deny on our webpage with the following: Header set X-Frame-Options DENY</p>
  
  <p><a href="https://i.stack.imgur.com/3rM0b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3rM0b.png" alt="apache2.conf file"></a></p>
  
  <p>All the documentation i can find says this is where it should be (inside the apache2.conf file).</p>
  
  <p>But i keep getting this output after restarting the server</p>
  
  <p><a href="https://i.stack.imgur.com/EZ3rO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EZ3rO.png" alt="Output after restart"></a></p>
  
  <p>I have tried:</p>
  
  <p>"Header set X-Frame-Options DENY" </p>
  
  <p>"Header Set X-Frame-Options DENY" </p>
  
  <p>"header set X-Frame-Options Deny</p>
  
  <p>"HEADER set X-Frame-Options DENY"</p>
  
  <p>"HEADER Set X-Frame-Options DENY"</p>
  
  <p>and many more along the above pattern.</p>
  
  <p>Again from all the documentation this should be as simple as adding one line of code or am I missing something blindingly obvious?</p>
  
  <p>I have also tried creating a httpd.conf file and linking this with an include in the apache2.conf.</p>
  
  <p>I managed to add the FileETag None with no problems however only really added this as a test to make sure i was adding the code to the right place.</p>
  
  <p>Any suggestions why this would be happening?</p>
  
  <p>I am new to web-server configuration so please be gentle in your replies :)</p>