unknown directive "flv"

Francis Daly francis at daoine.org
Sat Mar 26 01:24:03 UTC 2016

On Fri, Mar 25, 2016 at 02:22:19PM -0400, twister5800 wrote:

Hi there,

> nginx version: nginx/1.9.12
> built by gcc 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)

> configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx
> --add-module=/home/ubuntuadmin/nginx-rtmp-module

> But why can't nginx start when I add this to nginx.conf:
> location ~ .flv$ {
> flv;
> }
> It gives this:
> 2016/03/25 18:59:14 [emerg] 4643#0: unknown directive "flv" in
> /usr/local/nginx/conf/nginx.conf:63

Either: the nginx binary that you are running when reading the config file
does not include the flv module; or your third-party module is broken.

Try without the third-party module; if it works, then find the version
of the third-party module that is appropriate for this nginx version.

Francis Daly        francis at daoine.org

More information about the nginx mailing list