标签:back offset sse block 空间 pst str nginx配置文件 一个
user nobody; worker_processes 8; error_log varlog/nginx/error.log error; #pid logs/nginx.pid; events { use epoll; worker_connections 50000; } http { include mime.types; default_type application/octet-stream; log_format main ‘$remote_addr [$time_local] "$request" ‘ ‘$status $bytes_sent "$http_referer" ‘ ‘"$http_user_agent" "$http_x_forwarded_for"‘; access_log logs/access.log main buffer=32k; ... }
events { ... } http { upstream backend { server 127.0.0.1:8080; } gzip on; server { ... location /webstatic { gzip off; } }
上述代码中的events、http、server、location、upstream等都是块配置项,块配置项后大括号中的就是这个配置项的配置。块配置项可以嵌套,内层的块配置会直接继承外层块的配置,如上述的server就继承了http的配置。但是当内层配置与外层配置冲突时,该块配置会采用哪种配置(这里不解释,在Nginx块内配置冲突一文中介绍)?
#pid logs/nginx.pid;
gzip_buffers 4 8k; client_max_body_size 64M; expires 10y; proxy_read_timeout 600; client_body_timeout 2m;
log_format main ‘$remote_addr - $remote_user [$time_local] "$request" ‘ ‘$status $bytes_sent "$http_referer" ‘ ‘"$http_user_agent" "$http_x_forwarded_for"‘;
标签:back offset sse block 空间 pst str nginx配置文件 一个
原文地址:https://www.cnblogs.com/52why/p/13214668.html