Home > other >  Nginx lua NGX. Location. The capture of questions
Nginx lua NGX. Location. The capture of questions

Time:10-26

Business context is for all of the API request (for example: http://www.zhixinxxx.com/dledu/api/web/v1/courses/name? Name=hadoop) I configure the location/dledu/API
In this location by access_by_lua_file NGX. Location. The capture to a permission to verify the location (assuming the location/auth) when the return result value judgment is normal before turn to http://www.zhixinxxx.com/dledu/api/web/v1/courses/name? Name=hadoop request

Equivalent to make the motion of the interceptor in lua
But when I do the second NGX. Location. The capture ("/api_proxy ") is called the 404

Upstream web_server {
Server 127.0.0.1:8099
}
The location/api_proxy {proxy_pass http://web_server; }

Just contact nginx hope everybody greatly advice, thank you

Points may add
  • Related