You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed nginx-mod-http-lua and lua-resty-http on a running Alpine nginx installation
Downloaded cas.lua and global_cas_conf.lua to /etc/nginx/lua
Configured cas_uri in /etc/nginx/lua/global_cas_conf.lua
Configured nginx.conf
But get an Internal Server error calling the protected path. The error log of nginx reports:
2021/06/06 20:48:48 [error] 2352#2352: *2 lua entry thread aborted: runtime error: /usr/share/lua/common/resty/core/var.lua:71: no request found
stack traceback:
coroutine 0:
[C]: in function 'error'
/usr/share/lua/common/resty/core/var.lua:71: in function '__index'
/etc/nginx/lua/cas.lua:12: in function 'init'
/etc/nginx/lua/cas.lua:134: in function 'forceAuthentication'
access_by_lua(nginx.conf:129):1: in function <access_by_lua(nginx.conf:129):1>, client: 192.168.2.7, server: server.name, request: "GET /test HTTP/2.0", host: "server.name"
Do you have some hints?
Thanks,
Patrick
The text was updated successfully, but these errors were encountered:
nginx-auth-cas-lua is tested on debian which has ngx_http_lua_module 0.10.13, which has C implementation of ngx.var.
It seems you have lua-resty-core which is a lua implementation of things previously done in C (cf https://github.com/openresty/lua-resty-core#description ). It would be great to make nginx-auth-cas-lua work on more recent versions, but I can't help for now.
Hi,
I have...
But get an Internal Server error calling the protected path. The error log of nginx reports:
Do you have some hints?
Thanks,
Patrick
The text was updated successfully, but these errors were encountered: