随笔分类 - Nginx
摘要:Module ngx_http_gzip_module (nginx.org) # http block include /etc/nginx/conf.d/gzip.conf gzip on; gzip_comp_level 6; gzip_min_length 1024; gzip_http_v
阅读全文
摘要:Server: import socket sock = socket.socket(family=socket.AF_INET, type=socket.SOCK_DGRAM) sock.bind(('0.0.0.0', 2222)) while True: msg, addr = sock.re
阅读全文
摘要:Module ngx_stream_core_module (nginx.org) load_module /usr/lib64/nginx/modules/ngx_stream_module.so; stream { error_log stream.log debug; server { lis
阅读全文
摘要:Core functionality (nginx.org)
阅读全文
摘要:Quick start | Python | gRPC
阅读全文
摘要:Module ngx_http_v2_module (nginx.org)
阅读全文
摘要:Module ngx_http_core_module (nginx.org) open_file_cache max=10 inactive=60s; open_file_cache_min_uses 1; open_file_cache_valid 60s; open_file_cache_er
阅读全文
摘要:Module ngx_http_slice_module (nginx.org) proxy_cache introspect; slice 1m; # 每次向upstream请求1m proxy_cache_key $uri$is_args$args$slice_range; proxy_set_
阅读全文
摘要:# # proxy_cache # # proxy_cache_path 必须位于http块, levels 指定缓存空间三层目录, 200m指内存缓存空间, max_size硬盘缓存空间 proxy_cache_path /var/cache/nginx/proxy levels=2:2:2 ke
阅读全文
摘要:# Commen Name 不能相同 openssl genrsa -out ca.key 2048 openssl req -new -x509 -days 365 -key ca.key -out ca.crt openssl req -new -newkey rsa:2048 -keyout
阅读全文
摘要:Module ngx_http_referer_module (nginx.org) Nginx中有一个指令 valid_referers. 该指令可以用来获取 Referer 头域中的值,并且根据该值的情况给 Nginx全局变量 invalidreferer赋值。如果Referer头域中没有符合v
阅读全文
摘要:Alphabetical index of variables (nginx.org) ngx_http_core_module 模块变量 Module ngx_http_core_module (nginx.org) ngx_http_upstream_module 模块变量 Module ngx
阅读全文
摘要:nginx_http_sub_module Module ngx_http_sub_module (nginx.org) ngx_http_addition_module Module ngx_http_addition_module (nginx.org)
阅读全文
摘要:index module Module ngx_http_index_module (nginx.org) autoindex module Module ngx_http_autoindex_module (nginx.org)
阅读全文
摘要:$document_root & $realpath_root 是文件夹 $request_filename 是文件 disable_symlinks Module ngx_http_core_module (nginx.org)
阅读全文