Video has become quite the dominant format on the net. It is also fair to say that Flash has been the driving force behind this over the last couple of years. YouTube (http://youtube.com) is a good example of FLV streaming video sites. In this recipe, we will look at how simple it is to set up Flash video streaming.
In this simple recipe, you will initially need to re-compile Nginx with the FLV module and then configure the directories that will serve the FLV files.
You will need to recompile Nginx and add the following flag to the configure option:
./configure --with-http_flv_module Make && make install
You will then need to add the following configuration to the directory location where you are streaming it from:
location ~ \.flv$ { flv; }
You will then need to restart Nginx.