Hello!
On Fri, Jul 15, 2016 at 12:51 PM, aryajur wrote:
> I have a internal route specified in my nginx configuration like:
>
> location /static/ {
> internal;
> alias static/;
> }
>
> Now when a browser types that route then the 404 Not found message is
> displayed with the OpenResty version. Is there a way I can use a custom Lua
> handler to create that 404 message?
>
Just check out the standard error_log directive and ngx_lua's
content_by_lua* directive.
Regards,
-agentzh