Nginx hide the version number increase security

     一般来说,软件的漏洞和版本有关,在互联网上隐藏软件版本号不被***知道,对网站的安全性起到了一定的作用。

Check your version via the command
[root @ Blog ~] # curl the -I 127.0.0.1
HTTP / 1.1 200 the OK
Server: nginx / 1.16.0 This is the software name and version number
Date: Tue, 11 Jun 2019 10:09 : GMT 48
the Content-the Type: text / HTML; charset = UTF. 8-
Connection: Keep-Alive
X-Powered-By-: the PHP / 5.4.16
Link: < http://192.168.1.16/index.php?rest_route=/> rel = ;; " https://api.w.org/ "

Hide modify the configuration file version number
[the root Blog @ ~] # VI /etc/nginx/nginx.conf
HTTP {
......
server_tokens OFF; phrase increase restart Nginx
}

Guess you like

Origin blog.51cto.com/kangxi/2407531