1、nginx
http
{
include mime.types;
default_type application/octet-stream;
server_tokens off;隱藏nginx版本
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 50m;
2、php
修改php.ini 找到expose_php項 On 改成Off,
expose_php = Off
重啟:
/usr/local/php/sbin/php-fpm restart 和kill -HUP `cat /usr/local/nginx/logs/nginx.pid`即可。