I am currently confused. My code works on each request sent to location /.
########nginx.conf
server {
listen 8000;
server_name localhost;
lua_code_cache on;
location / {
content_by_lua_file /path/to/file.lua;
}
}
The file.lua does a few operations on each incoming http request.
How would it be any different if I included the file.lua via access_by_lua_file instead of content_by_lua_file?
I apologize if this is a stupid question. Please do help me learn. :)