Alex Rivera | Logout

Hide X-Powered-By (nginx)

Asked 2009-06-07T16:28:53.283
61

So is there any way to hide X-Powered-By on Nginx?

Edit
Report

2 Answers

61

x-powered-by is given by the module, for instance php fastcgi module offers to set expose_php=Off in php.ini

answered 2011-10-02T16:42:38.110
4

Try to use the more_clear_headers directive from the nginx's HttpHeadersMoreModule which can allow you to declare:

more_clear_headers 'X-Powered-By';

which should do just what you want.

answered 2012-10-10T07:38:22.257

Your Answer