Действительно ли модуль gunzip включен в Nginx по умолчанию?

У меня есть новый сервер с Debian 9. Я использовал $ apt update & apt install nginx для установки Nginx.

После его установки я попытался проверить, какие модули доступны: $ nginx -V

и я вижу, что установлен http_gunzip_module:

версия nginx: nginx / 1.10.3

построен с OpenSSL 1.1.0k 28 мая 2019 г.

Включена поддержка TLS SNI

настроить аргументы: --with-cc-opt = '- g -O2 -fdebug-prefix-map = / build / nginx-DhOtPd / nginx-1.10.3 =. -fstack-protector-strong -Wformat -Werror = format-security -Wdate-time -D_FORTIFY_SOURCE = 2 '--with-ld-opt =' - Wl, -z, relro -Wl, -z, now '--prefix = / usr / share / nginx --conf-path = / etc / nginx / nginx.conf --http-log-path = / var / log / nginx / access.log --error-log-path = / var / log / nginx / error.log --lock-path = / var / lock / nginx.lock --pid-path = / run / nginx.pid --modules-path = / usr / lib / nginx / modules --http -client-body-temp-path = / var / lib / nginx / body --http-fastcgi-temp-path = / var / lib / nginx / fastcgi --http-proxy-temp-path = / var / lib / nginx / proxy --http-scgi-temp-path = / var / lib / nginx / scgi --http-uwsgi-temp-path = / var / lib / nginx / uwsgi --with-debug --with-pcre- jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-http_slice_module --with-http_slice_module --with-http_slice_module --with-http_slice_module --with-http_slice_module - http_addition_module --with-http_geoip_module = dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_mod ule = dynamic --with-http_sub_module --with-http_xslt_module = dynamic --with-stream = dynamic --with-stream_ssl_module --with-mail = dynamic --with-mail_ssl_module --add-dynamic-module = / build / nginx-DhOtPd / nginx-1.10.3 / debian / modules / nginx-auth-pam --add-dynamic-module = / build / nginx-DhOtPd / nginx-1.10.3 / debian / modules / nginx-dav-ext- модуль --add-dynamic-module = / build / nginx-DhOtPd / nginx-1.10.3 / debian / modules / nginx-echo --add-dynamic-module = / build / nginx-DhOtPd / nginx-1.10.3 / debian / modules / nginx-upstream-fair --add-dynamic-module = / build / nginx-DhOtPd / nginx-1.10.3 / debian / modules / ngx_http_substitutions_filter_module

Итак, включен ли ngx_http_gunzip_module по умолчанию?

Если да, то почему здесь и здесь мы видим, что http_gunzip_module не является модулем по умолчанию?


person petita    schedule 31.03.2020    source источник
comment
Создано по умолчанию означает построено без опции --with-http_gunzip_module. Очевидно, что те, которые создали версию, которую вы установили, действительно включали параметр --with-http_gunzip_module, и, следовательно, версия, которую вы установили, действительно включает этот модуль.   -  person Richard Smith    schedule 31.03.2020
comment
Спасибо. Но как я могу заранее узнать, включена ли эта опция? Где доступны эти данные?   -  person petita    schedule 31.03.2020
comment
Я не являюсь экспертом в Debian или apt, но вы можете найти нужную информацию здесь: https://packages.debian.org/stable/httpd/nginx   -  person Richard Smith    schedule 31.03.2020


Ответы (1)


Да, он включен в вашу сборку. у вас есть флаг --with-http_gunzip_module в результатах проверки версии.

person Ron    schedule 01.04.2020