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