随笔分类 -  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 阅读全文
posted @ 2022-05-27 13:10 ascertain 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-22 16:09 ascertain 阅读(146) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2022-05-22 16:04 ascertain 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-22 00:04 ascertain 阅读(240) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2022-05-21 21:49 ascertain 阅读(168) 评论(0) 推荐(0) 编辑
摘要:Core functionality (nginx.org) 阅读全文
posted @ 2022-05-21 20:12 ascertain 阅读(9) 评论(0) 推荐(0) 编辑
摘要:Quick start | Python | gRPC 阅读全文
posted @ 2022-05-21 19:42 ascertain 阅读(36) 评论(0) 推荐(0) 编辑
摘要:Module ngx_http_v2_module (nginx.org) 阅读全文
posted @ 2022-05-21 19:11 ascertain 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-21 18:22 ascertain 阅读(29) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2022-05-21 18:09 ascertain 阅读(77) 评论(0) 推荐(0) 编辑
摘要: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_ 阅读全文
posted @ 2022-05-21 17:13 ascertain 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-20 22:54 ascertain 阅读(26) 评论(0) 推荐(0) 编辑
摘要:# # proxy_cache # # proxy_cache_path 必须位于http块, levels 指定缓存空间三层目录, 200m指内存缓存空间, max_size硬盘缓存空间 proxy_cache_path /var/cache/nginx/proxy levels=2:2:2 ke 阅读全文
posted @ 2022-05-20 21:52 ascertain 阅读(62) 评论(0) 推荐(0) 编辑
摘要:# 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 阅读全文
posted @ 2022-05-15 23:48 ascertain 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-15 11:20 ascertain 阅读(25) 评论(0) 推荐(0) 编辑
摘要:Module ngx_http_referer_module (nginx.org) Nginx中有一个指令 valid_referers. 该指令可以用来获取 Referer 头域中的值,并且根据该值的情况给 Nginx全局变量 invalidreferer赋值。如果Referer头域中没有符合v 阅读全文
posted @ 2022-05-14 19:29 ascertain 阅读(185) 评论(0) 推荐(0) 编辑
摘要:Alphabetical index of variables (nginx.org) ngx_http_core_module 模块变量 Module ngx_http_core_module (nginx.org) ngx_http_upstream_module 模块变量 Module ngx 阅读全文
posted @ 2022-05-14 17:56 ascertain 阅读(61) 评论(0) 推荐(0) 编辑
摘要:nginx_http_sub_module Module ngx_http_sub_module (nginx.org) ngx_http_addition_module Module ngx_http_addition_module (nginx.org) 阅读全文
posted @ 2022-05-14 17:17 ascertain 阅读(36) 评论(0) 推荐(0) 编辑
摘要:index module Module ngx_http_index_module (nginx.org) autoindex module Module ngx_http_autoindex_module (nginx.org) 阅读全文
posted @ 2022-05-14 14:39 ascertain 阅读(22) 评论(0) 推荐(0) 编辑
摘要:$document_root & $realpath_root 是文件夹 $request_filename 是文件 disable_symlinks Module ngx_http_core_module (nginx.org) 阅读全文
posted @ 2022-05-14 13:31 ascertain 阅读(486) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示