Re: NGINX perl module to server files

2013-09-01 Thread Maxim Dounin
Hello! On Sun, Sep 01, 2013 at 04:29:46PM -0500, Jorge Sanchez wrote: [...] > So from above it turns out that there were no headers sent and thus the > status code probably defaulted to "000" on NGINX. > > Adding the send_http_header before the $r->sendfile() solves the issue. > $r->send_http_h

Re: NGINX perl module to server files

2013-09-01 Thread Jorge Sanchez
Hello list, here is the strace of the NGINX serving my media file (Jpg) to the client: Accepting the connection: 25003 accept4(6, {sa_family=AF_INET, sin_port=htons(53907), sin_addr=inet_addr("XXX.XXX.XXX.XX")}, [16], SOCK_NONBLOCK) = 3 Opening the file: 25003 open("/usr/site/gruppe/media/t_pic

NGINX perl module to server files

2013-08-31 Thread Jorge Sanchez
Hello, I have created perl NGINX module to server static files on the NGINX (mainly images). For security reasons I am generating the AES:CBC encrypted url which I am decrypting on the NGINX and serving the file via NGINX perl module. The problem is that I am sometimes getting the bellow response