时间:2016-02-26 19:27 来源: 我爱IT技术网 作者:佚名
欢迎您访问我爱IT技术网,今天小编为你分享的电脑教程是服务器系列之:【Nginx隐藏服务器端各类信息的方法】,下面是详细的分享!
Nginx隐藏服务器端各类信息的方法
server_tokens off;
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
index index.php index.html index.htm;
server_tokens off;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}
以上就是关于Nginx隐藏服务器端各类信息的方法的服务器维护教程分享,更多电脑教程请移步到>>电脑教程频道。
- 评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
-
