比如页面无响应内容,但是openresty也不报错,就需要查看log
log位置
/usr/local/openresty/nginx/logs/error.log
比如如下内容,就表明你在nginx配置中写的lua脚本有错误,错误在remote_user
这里
2020/12/12 09:13:37 [error] 2725#2725: *146 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/luatest/tmp.lua:3: attempt to concatenate field 'remote_user' (a nil value)
stack traceback:
coroutine 0:
总结
- log位置
nginx/logs