(nginx)高性能Linux服务器构建实战:系统安全、故障排查、自动化运维、集群架构...

max_client=worker_processes * worker_connections
client_max_body_size
sendfile on
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout
gzip on
gzip_vary
charset utf8;
location ~ ..()http://x/host!='xxx'){}
location :
=严格匹配,优先级最高
优先级为2
^~ 优先级3
~

deny ip;
allow ip;
deny all;
~* 不区分大小写
~区分大小写
-f
-d
-e
-x
host
limit_rate
request_method
remote_addr
remote_port
request_uri 含有参数
server_name
server_port

last
break 不再匹配
redirect
permanent
set query_string
$args
break;直接退出
ngx_cache_purge
--addmodule=/xx
proxy_cache

upstream xx
weight max_fails fail_timeout

猜你喜欢

转载自blog.csdn.net/weixin_34034670/article/details/87458042