Module : showing content of the folder

Hello,
I’m trying to develop a small module for nginx that verify the url. If
it’s
not valid, I return NGX_HTTP_FORBIDDEN in the handler and that works
fine.
But if url is correct i want to send the content of the location to the
client. I tested to return different values, but it doesn’t work (The
module
is activated in the same folder as the content I want to show, so I
can’t
use ngx_http_internal_redirect)

What I want to know, is if I need to configure the header / output
myself or
if i have to set a variable in ngx_http_request_t to 0?

Thanks for your help,
Goldfluss

Posted at Nginx Forum: