openresty获取nginx中的变量

 

 

OpenResty中如何引用这些变量呢?


规则很简单, 如$remote_addr, 在OpenResty里面使用就是ngx.var.remote_adddr。

 

 

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
  • 2021-12-05
  • 2021-08-04
猜你喜欢
  • 2021-11-24
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-10-26
相关资源
相似解决方案