unknown directive "flv"

twister5800 nginx-forum at forum.nginx.org
Fri Mar 25 18:22:19 UTC 2016


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: https://forum.nginx.org/read.php?2,265654,265654#msg-265654



More information about the nginx mailing list