wyveo / nginx-php-fpm

Nginx + PHP-FPM 8.2.x / 8.1.x / 8.0.x / 7.4.x / 7.3.x / 7.2.x / 7.1.x / 7.0.x + Composer built on Debian (Bullseye/Buster) image
https://hub.docker.com/r/wyveo/nginx-php-fpm
MIT License
342 stars 245 forks source link

add module headers-more-nginx-module to hide the Server information in the header #38

Open samuele-perrone opened 3 years ago

samuele-perrone commented 3 years ago

It would be great to have the headers-more-nginx-module module added by default.

I'm currently using it on my docker image and it's useful because have all the default libs I need. However, after a couple of penetration testing reports I had been asked to remove the Server: nginx value from the response header.

I've added server_tokens off; to the nginx config to hide the version, but I need to use more_clear_headers Server; to completely remove the information. I can only do with this module apparently, unless there is another way.

Any recommendation would be great to solve the problem sooner than awaiting for an eventual update. Thank you for the hard work. Sam