Странности. В документации ничего не нашел интересного (плохо искал?)

имеем sc.conf.inc:
location ~*
\.(asf|asx|wax|wmv|wmx|avi|class|divx|doc|docx|eot|exe|gz|gzip|ico|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip|cur|map|css|js|bmp|gif|jpg|jpeg|png|less|txt|asp)$
{
    image_filter_interlace on;
    image_filter_jpeg_quality 70;
    expires 31536000s;
    add_header Pragma "public";
    add_header Cache-Control "max-age=31536000, public";
    try_files $uri =404;
}

nginx собран с модулем:
nginx -V
nginx version: nginx/1.12.2
built with OpenSSL 1.0.2n  7 Dec 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
/usr/local/include' --with-ld-opt='-L /usr/local/lib'
--conf-path=/usr/local/etc/nginx/nginx.conf
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx/error.log --user=www --group=www
--modules-path=/usr/local/libexec/nginx --with-file-aio
--with-cc-opt='-DNGX_HAVE_INET6=0 -I /usr/local/include'
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp
--http-log-path=/var/log/nginx/access.log --with-http_addition_module
--with-http_auth_request_module --with-http_gzip_static_module
--with-http_gunzip_module --with-http_image_filter_module=dynamic
--with-http_realip_module --with-http_stub_status_module
--with-http_sub_module --with-pcre --with-http_v2_module
--with-stream=dynamic --with-stream_ssl_module
--with-stream_ssl_preread_module --with-threads --with-http_ssl_module

при этом:
nginx -t                               
nginx: [emerg] unknown directive "image_filter_interlace" in
/usr/local/etc/nginx/sc.conf.inc:5
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?21,278302,278302#msg-278302

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Ответить