Unknown directive "flv"

Hi,

I have compiled nginx with allmodules:

nginx version: nginx/1.9.12
built by gcc 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)
built with OpenSSL 1.0.2d 9 Jul 2015
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx
–conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid
–lock-path=/var/run/nginx.lock --with-http_ssl_module
–with-http_realip_module --with-http_addition_module
–with-http_sub_module
–with-http_dav_module --with-http_flv_module --with-http_mp4_module
–with-http_gunzip_module --with-http_gzip_static_module
–with-http_random_index_module --with-http_secure_link_module
–with-http_stub_status_module --with-file-aio --with-pcre
–with-file-aio
–with-cc-opt=‘-g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -DTCP_FASTOPEN=23’
–with-ld-opt=‘-Wl,-z,relro -Wl,–as-needed -L /usr/lib’ --with-ipv6
–with-debug --without-http_scgi_module --without-http_uwsgi_module
–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

Best regards
Martin

Posted at Nginx Forum:

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.

f

Francis D. [email protected]