Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can do it using the nginx-lua module, something like:

`local response = ngx.location.capture("/some/api/endpoint" )`

I would not recommend doing this, though. Nginx internals are rather complicated in my experience.



Thanks!

So better off to just log to a file and monitor the tail of that and send the data off with a seperate script?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: