隐藏PHP和Nginx版本号

nginx.conf

http {
    ...
    server_tokens off;
    ...
}

php.ini

expose_php = Off

重新加载一遍配置文件,大功告成。

标签: 安全

添加新评论