erseco / alpine-php-webserver

Docker image with Nginx & PHP-FPM on Alpine Linux
https://hub.docker.com/r/erseco/alpine-php-webserver
MIT License
50 stars 26 forks source link

Hide server info and add security headers #5

Closed jimsihk closed 1 year ago

jimsihk commented 2 years ago

NGINX and PHP-FPM versions are currently exposed in HTTP headers which are considered not secure enough as exposed OS info. Also added HTTP response headers for higher security.

References: https://kubernetes.github.io/ingress-nginx/deploy/hardening-guide/ https://www.upguard.com/blog/how-to-build-a-tough-nginx-server-in-15-steps https://beaglesecurity.com/blog/article/nginx-server-security.html https://stackoverflow.com/questions/962230/hide-x-powered-by-nginx