隐藏nginx和php的版本号

nginx:
在配置文件nginx.conf的http段里加入
server_tokens off;
php:
把配置文件php.ini的
expose_php = On
修改为
expose_php = Off
posted @ 2012-02-07 00:36  wenanry  阅读(273)  评论(0编辑  收藏  举报