nginx – how to hide the server version

How to hide the nginx server version for security reasons.

Just use the server_tokens variable and restart the webserver afterwards.

vim /etc/nginx/nginx.conf

server_tokens off;
systemctl reload nginx

Kommentar verfassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Nach oben scrollen