I don’t know what you’re trying to solve… but maybe you can just send a range
request relative to the end,
without any custom module.
For example, ‘Range: bytes=-1024’ will return the last 1k of the resource.
Eran
From: nginx-devel On Behalf Of Maksim Yevmenkin
Sent: Thursday, February 13, 2020
Hello
What would be the best way to write a Nginx module that would essentially
tail a file?
Thanks
Max
___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
details: https://hg.nginx.org/nginx/rev/1055e43e4fab
branches:
changeset: 7624:1055e43e4fab
user: Vladimir Homutov
date: Tue Feb 11 13:22:44 2020 +0300
description:
Made ngx_http_get_forwarded_addr_internal() non-recursive.
diffstat:
src/http/ngx_http_core_module.c | 62 +
It looks like your service defined in auth_http doesn't answer (or no
listener on 127.0.0.1 port 9000?)...
try netstat (in cmd as admin):
netstat /nabo
netstat /nabo | grep -A 1 ":9000b"
and check whether the listener on port 9000 is bound to 127.0.0.1 (or it
is 0.0.0.0 only?) and it is th