Given that it works in the http block, I have crafted this .conf file which (on Debian-based systems) can be dropped straight into /etc/nginx/conf.d without modifying any existing files. This ...
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cq55383/
$ curl -Is davidsj.co.uk | grep Clacks X-Clacks-Overhead: GNU Terry Pratchett
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpgkon1/
That's nearly as good as "Python on Ski"
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpf6sco/
giggle
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpet0a7/
Only if you don't have another add_header directive deeper (I have one for adding HSTS to my responses)
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpepmae/
seems you can put it straight in the http block :)
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpekshn/
don't fear the nginx!
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpejw6j/
I approve of your tampered X-Powered-By.
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpejd5q/
Added to a few of the servers I control. Thanks!
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpejcvr/
You can directly put it into the http block. And if you have a nginx version >= 1.7.5 you can add ALWAYS before the semicolon: http://nginx.org/en/docs/http/ngx_http_headers_module.html add_...
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpeilzh/
$ curl -IL www.overclock.net HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Cache-Control: private, max-age=0, pre-check=0, must-revalidate Last-Modified: Sat, 14 Mar 2...
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpefqkw/
Thanks! Throwing it on my box now.
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpebfh4/
And if you run nginx, it's just add_header X-Clacks-Overhead "GNU Terry Pratchett"; in the server or location block of your nginx.conf. Edit: Apparently also works in the http block, t...
https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/cpdjen5/