[[email protected] ~]# cd /usr/hello/
[[email protected] hello]# ll
total 16
-rw-r--r--. 1 root root  291 Apr 26 18:18 hello.conf
drwxr-xr-x. 2 root root 4096 Jun  6 00:07 lua
drwxr-xr-x. 6 root root 4096 May 23 17:47 lualib

drwxr-xr-x. 2 root root 4096 Apr 26 18:30 templates

[[email protected] hello]# vi hello.conf 

打开

记录一次nginx+lua

第一处为 url访问路径

第二处为 lua脚本位置

然后去该位置编写lua脚本。

记录一次nginx+lua

最后不要忘记 刷新一下nginx

/usr/servers/nginx/sbin/nginx -s reload


相关文章:

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