随笔分类 - Nginx/Openresty
摘要:报错内容 2024/08/06 16:56:13 [error] 154236#154236: *7039 [lua] plugin.lua:110: load_plugin(): failed to load plugin [ldap-auth] err: error loading module
阅读全文
摘要:背景 网络架构中需要遇到apisix,想做个apisix 访问出错的兜底方案 nginx配置 其中http://11.11.11.11:9080 是apisix访问地址 server { listen 80; server_name sfimplat; index index.html index.
阅读全文
摘要:Http状态码502常见原因及排错思路 502表示Bad Gateway。当Nginx返回502错误时,通常表示Nginx作为代理服务器无法从上游服务器(如:我们的后端服务器地址)获取有效的响应。导致这种情况的原因有很多: 1、后端服务器故障 2、nginx配置问题 3、高负载或者资源耗尽 4、ng
阅读全文
摘要:背景 为网关提供健康检查功能时需要对节点发送http或者tcp探活请求。Openresty 提供cosocket来处理非阻塞IO。 实现 跟工程结合在一起,这里简单拼接数据结构 local function __default_check_alive(status) return status >=
阅读全文
摘要:rewite 在server块下,会优先执行rewrite部分,然后才会去匹配location块server中的rewrite break和last没什么区别,都会去匹配location,所以没必要用last再发起新的请求,可以留空 location中的rewirte: 不写last和break -
阅读全文
摘要:2022/10/20 18:38:56 [crit] 67121#0: *16996 open() "/app/openresty/nginx/proxy_temp/8/03/0000000038" failed (13: Permission denied) while reading upstr
阅读全文
摘要:报错: Auto configuration failed 139868431284128:error:0E079065:configuration file routines:DEF_LOAD_BIO:missing equal sign:conf_def.c:362:line 39 openss
阅读全文
摘要:resty.limit.count 模块介绍: resty.limit.count 模块就是限制接口单位时间的请求数,This module depends on lua-resty-core模块,所以要在openresty 的http标签端添加 nginx init_by_lua_block {
阅读全文