隐藏版本号

1.php未隐藏的话,通过curl 会看到 X-Powered-By:PHP/5.2.26 隐藏方法:vi php.ini expose_php = Off

2.apache未隐藏的话,通过curl 会看到 Server:Apache/2.2.15 隐藏方法:vi httpd.conf ServerTokens = ProductOnly ServerSignature = Off

3.nginx未隐藏的话,通过curl 会看到 Server: nginx/0.7.67 隐藏方法:vi nginx.conf 在http里加入 server_tokens= Off

4.nginx reverse proxy 隐藏 header

proxyhideheader X-Cache;

proxyhideheader X-Powered-By;

proxyhideheader Last-Modified;

proxyhideheader Date;

proxyhideheader Content-Length;

proxyhideheader Content-Language;

proxyhideheader Cache-Control;

重启服务完成操作