Re: How to make FASTCGI deliver an external file
Jose Adriano Baltieri <jabaltie-a/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Organization | UNIMEP |
| Message-ID | <[email protected]> |
I had originally posted the issue below but, I've found out that
Lighthttpd server DOES implement it !
Check : http://blog.lighttpd.net/articles/2006/07/02/x-sendfile
You'll see that it is exactly what I was looking for.
However, I only think that this should be part of the FastCGI protocol
specification.
Please understand that the concept is DIFFERENT from an authorizer role.
That's not it. It's another thing.
Anyway, again, who's coordinating the FastCGI specs ?
Jose Adriano Baltieri wrote:
> Suppose that you have a FASTCGI like this :
>
> While there are requests()
> if request is not OK, say for security reasons, then
> send a message to the browser and loop again
> end if
> // the request is OK, that is, authorized THEN...
> // we need to send to the browser an external file
> // that is on this path : C:\SOMEWHERE\DOWN\ON\THE\SERVER\HARDDISK\EMPLOYEE_PICTURE.JPG
> end While
>
>
> Can I do that DIRECTLY ? That is, withouth having to RE-READ that file
> from inside FASTCGI itself ?
>
> IOW, is there some special order or instruction that I can issue from
> FASTCGI telling the http server :
>
> "Hey http server, deliver THE FILE ON THIS PATH to the browser, will you ?"
>
> I use something similar on a particular implementation of a webserver
> API that we have here...
>
>
--
Obrigado,
------------------------------------------------------------------------------
Jose Adriano Baltieri - Analista de Sistemas
DTI - CENTRO - UNIMEP - Universidade Metodista de Piracicaba
PIRACICABA - SP - Brasil - Fone : (19) 3124-1858
------------------------------------------------------------------------------
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/