nginx + php-fpm and nginx modules
I'm trying to wrap my head around an issue that's been presented to me.
I have an nginx server running php-fpm and all PHP requests are piped to a single location which redirects to php-fpm.
I would like to serve up h264 video from the same server, and there is a mod_h264 module for nginx that does this quite well.
The issue is, I'd like to pipe the request for that video through PHP, as we do authentication and whatnot via that mechanism, and then pipe the video out through that request while using the nginx module.
I'm having a lot of trouble wrapping my head around this and was wondering if anyone had run into this and found a solution.
Thanks!
|