取消nginx版本显示
在server段加上:
server_tokens off;
取消HTTP请求的header头的X-Powered-by值
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
fastcgi_hide_header X-Powered-By; 添加此行
}