Re: Hide HTTP headers in nginx

2020-11-13 Thread Francis Daly
On Fri, Nov 13, 2020 at 06:03:02AM +0530, Kaushal Shriyan wrote: Hi there, > As part of the security audit, I have set server_tokens off; > in /etc/nginx/nginx.conf. Is there a way to hide Server: nginx, > X-Powered-By and X-Generator? It's generally pointless from a security perspective to hide

RE: Hide HTTP headers in nginx

2020-11-13 Thread Reinis Rozitis
> As part of the security audit, I have set server_tokens off; in > /etc/nginx/nginx.conf. Is there a way to hide Server: nginx, X-Powered-By and > X-Generator? > > To hide the below HTTP headers > > Server: nginx > X-Powered-By: PHP/7.2.34 > X-Generator: Drupal 8 (https://www.drupal.org) Afa

Hide HTTP headers in nginx

2020-11-12 Thread Kaushal Shriyan
Hi, As part of the security audit, I have set server_tokens off; in /etc/nginx/nginx.conf. Is there a way to hide Server: nginx, X-Powered-By and X-Generator? To hide the below HTTP headers Server: nginx > X-Powered-By: PHP/7.2.34 > X-Generator: Drupal 8 (https://www.drupal.org) curl -i -H Hos