When I use
curl --head to test my website, it return the server information.
I followed this tutorial https://www.getpagespeed.com/server-setup/nginx/how-to-remove-the-server-header-in-nginx to hide the nginx server header.
But when I run the command
yum install nginx-module-security-headers
, it returns
yum: not found.
I also tried
apk add nginx-module-security-headers, and it show that the package is missing.
I have used nginx:1.17.6-alpine as my base docker container, does anyone know how to hide the server from header under this Alpine?