A question about add_header replication

bit bull bitbull.cn at gmail.com
Mon Oct 5 21:03:20 MSD 2009


1. why not support any header rewriting?  I think this feature will
make a flexible config-file.
2. I used  "server_tokens off;".  thanks



2009/10/5 Maxim Dounin <mdounin at mdounin.ru>:
>
> 1. Directive add_header does not support arbitrary header rewriting.
>
> 2. No, you can't redefine Server header without patching code.  It
> isn't considered to be good thing to do, but for those who still
> thinks that hiding head in sand is a good way to handle security
> there is directive "server_tokens off;" which will hide version
> string from Server header and standard error pages.
>
> Maxim Dounin
>
>





More information about the nginx mailing list