• HOME
  • SEARCH
  • TOPICS
  • DATA

  • Docker 部署 OpenResty

    搜索镜像 docker search openresty/openresty 拉取镜像 版本号可以去官网查看:https://hub.docker.com/r/

    2022-02-01, Views: 5400 , Topics: Docker OpenResty DevOps

  • OpenResty 使用 Certbot 生成 SSL 证书

    操作系统 Centos8 安装 snap 包管理器 安装epel仓库并更新 sudo dnf install epel-release sudo dnf u

    2021-09-15, Views: 4772 , Topics: OpenResty HTTPS Let's Encrypt

  • Nginx(OpenResty) 去掉默认错误页面中的版本号

    说明 修改Nginx的源码才能去除,所以必须通过编译安装,yum或apt-get方式无法修改。 适用于OpenResty。 Nginx和OpenResty的开源

    2021-05-11, Views: 3203 , Topics: Nginx OpenResty License

  • OpenResty lua-resty-http unable to get local issuer certificate

    错误信息 在请求https接口时,抛出了如下异常信息: lua ssl certificate verify error: (20: unable to get

    2021-05-09, Views: 6201 , Topics: OpenResty HTTPS

  • OpenResty lua-resty-auto-ssl 无法颁发证书问题

    开启 debug 日志 error_log logs/error.log debug; 错误日志 2021/02/17 11:13:47 [notice] 1

    2021-05-09, Views: 3145 , Topics: OpenResty HTTPS Let's Encrypt

  • OpenResty lua-resty-auto-ssl: failed to set ocsp stapling for

    错误日志 lua-resty-auto-ssl报错。 2021/02/17 08:59:12 [error] 28822#0: 17557 [lua] ssl

    2021-05-08, Views: 3824 , Topics: OpenResty HTTPS Let's Encrypt

  • OpenResty 使用 lua-resty-auto-ssl 配置 https 证书

    lua-resty-auto-ssl 开源地址 https://github.com/auto-ssl/lua-resty-auto-ssl lua-resty

    2021-05-06, Views: 7658 , Topics: OpenResty Let's Encrypt HTTPS

  • 使用 LuaRocks 管理 Lua 依赖

    列出已安装依赖 luarocks list 查看帮助 luarocks help 查看命令帮助 luarocks help install 查找依赖 luaro

    2021-05-05, Views: 6246 , Topics: LuaRocks Lua OpenResty

  • OpenResty 整合 LuaRocks - Linux

    安装 LuaRocks 下载地址:https://luarocks.github.io/luarocks/releases 下载并解压 wget https:/

    2021-05-04, Views: 4051 , Topics: OpenResty LuaRocks Linux

  • Linux 编译安装 OpenResty

    下载 OpenResty 本文以openresty-1.19.3.1为例。 wget https://openresty.org/download/openre

    2021-05-03, Views: 4024 , Topics: OpenResty Linux

  • Linux yum 安装 OpenResty

    下载镜像 wget https://mirrors.tuna.tsinghua.edu.cn/openresty/centos/7/x86_64/openres

    2021-05-03, Views: 3839 , Topics: OpenResty yum Linux

  • OpenResty 使用 lua-resty-upload 上传文件

    说明 lua-resty-upload内置于OpenResty中,可直接require即可。 Linux平台文件保存路径需为绝对路径,不能使用相对路径。 Win

    2021-03-02, Views: 4065 , Topics: OpenResty Lua

  • OpenResty get_body_data 无法获取请求体数据

    问题 在使用application/json提交请求体数据时,ngx.req.read_body()获得的请求体参数为nil。 情况一 在获取请求体前未使用ng

    2020-11-23, Views: 4280 , Topics: OpenResty Lua

  • OpenResty 清除 Sever 头信息

    需求 HTTP返回的Header中不带Server字段。 方式 使用OpenResty自带并默认开启的headers-more-nginx-module模块清除

    2020-10-04, Views: 5410 , Topics: OpenResty HTTP

  • Windows 平台 lua-resty-upload 上传的文件无法打开

    现象 使用lua-resty-upload示例代码上传的图片,在Windows平台无法打开,提示似乎不支持此文件格式。 对比发现上传后的文件比原始文件大了几KB

    2020-10-03, Views: 3184 , Topics: OpenResty Lua

  • OpenResty 判断是否为空

    注意 Lua中只有nil和false为假,其余都为真,空字符串也为真。 判断变量为空 local str = nil -- local str = false

    2020-04-11, Views: 6919 , Topics: OpenResty Lua

  • OpenResty 解析 JSON 中的 null 字段时问题

    问题描述 在使用cjson解析字段值为null的JSON字符串时,在Lua的table数据格式中,该字段不等于空。 解决方法 在反序列化null的JSON字符串

    2020-04-10, Views: 4083 , Topics: OpenResty Lua

  • OpenResty 返回中文乱码问题

    描述 接口中使用ngx.say(json.encode)编码json字符串,返回中文乱码。 {"msg":"请求成功","code":0} 解决

    2020-03-20, Views: 7579 , Topics: OpenResty Lua JSON

  • OpenResty 中的正则匹配和替换

    正则匹配 ngx.re.match 匹配第一次出现的。未匹配到返回nil,匹配到了返回一个table对象。table[0]中是整个匹配到的字符串,table[1

    2020-03-12, Views: 9503 , Topics: OpenResty Lua 正则表达式

  • OpenResty 中的几种防止 SQL 注入的方法

    方法介绍 ngx.quote_sql_str 按照MySQL规则。传入nil会报错。 ndk.set_var.set_quote_sql_str 调用Nginx

    2020-03-10, Views: 6895 , Topics: OpenResty Lua SQL

  • Prev
  • 1
  • 2
  • Next Last

©2025 沪ICP备18012661号-1 阿里云

Messages Sitemap GitHub