Add a custom header with htaccess
Submitted by fser on Fri, 07/19/2013 - 01:34
To add a custom header using htaccess, you can use the `Header` directive:
Header set Fser "I was here hehe"
And it just works as expected:
$ curl -I localhost/headerset/
HTTP/1.1 200 OK
Server: nginx/1.2.1
Date: Fri, 19 Sep 2014 17:33:19 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
Fser: I was here hehe
Vary: Accept-Encoding
Add new comment