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
Hi, considering that CDN does not send the request to the server,
If I want to do something in each request, for example, to save a series of statistics in the database or to check the request header, what should I do?
The text was updated successfully, but these errors were encountered:
It depends on what you want to do... e.g. a simple header check can be implemented using the nginx if directive, or nginx auth_request.
If you need something more complex, you can use nginx-lua to write custom Lua code in various phases of the request (e.g. access_by_lua_block)
Hi, considering that CDN does not send the request to the server,
If I want to do something in each request, for example, to save a series of statistics in the database or to check the request header, what should I do?
The text was updated successfully, but these errors were encountered: