I have been trying to configure Kong to redirect users to /login page if the status code of any request is 401, but haven’t been able to do this.
I have made changes in kong_nginx.lua, here configured error page for 401.
We created a copy of the /kong_error_handler function and did some changes.
Can anyone provide suggestion on the recommended way to do this
We currently have multiple Nginx config files(one per app), can we append the contents of all these config files into one single custom Nginx config - is there a way to “include” them in more modular way into custom Nginx configuration file ?