How to change(Hide) the Nginx Server Signature?

前端 未结 5 1875
花落未央
花落未央 2020-12-28 14:44

I can hide Nginx version by using server_tokens option set to off. But not able to change the Nginx Server signature.

Steps I did,

1.) Change the Nginx serve

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-28 15:11

    Go to nginx conf and switch off server_tokens.

    /etc/nginx/nginx.conf
    
    server_tokens off;
    

提交回复
热议问题