Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#61191 - module support not compiled with nginx

Attached to Project: Community Packages
Opened by ipp (n8V8r) - Thursday, 27 December 2018, 17:38 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 01 January 2019, 16:46 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: unknown directive "brotli" in /etc/nginx/nginx.conf


Additional info:
* package version(s) 1:0.1.2-4
* config and/or log files etc.


Steps to reproduce:

1 pacman -S nginx-mod-brotli
2 add 'brotli on' directive to /etc/nginx/nginx.conf
3 nginx -t from the cli produces -> unknown directive "brotli" in /etc/nginx/nginx.conf
4 Check presence of modules in /usr/lib/nginx/modules/ -> yes, present
5 nginx -V

nginx version: nginx/1.14.2
built with OpenSSL 1.1.1a 20 Nov 2018
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/bin/ngin x --pid-path=/run/nginx.pid --lock-path=/run/lock/nginx.lock --user=http --group=http --http-log-pat h=/var/log/nginx/access.log --error-log-path=stderr --http-client-body-temp-path=/var/lib/nginx/clie nt-body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-cc-opt= '-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt -fPIC - D_FORTIFY_SOURCE=2' --with-ld-opt=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now --with-compat -- with-debug --with-file-aio --with-http_addition_module --with-http_auth_request_module --with-http_d av_module --with-http_degradation_module --with-http_flv_module --with-http_geoip_module --with-http _gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_realip_module --wit h-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_mo dule --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-pcre-jit --with-stream --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_module --wit h-stream_ssl_preread_module --with-threads







This task depends upon

Closed by  Doug Newgard (Scimmia)
Tuesday, 01 January 2019, 16:46 GMT
Reason for closing:  Not a bug
Comment by Massimiliano Torromeo (mtorromeo) - Tuesday, 01 January 2019, 11:57 GMT
Did you load the module with "load_module /usr/lib/nginx/modules/ngx_http_brotli_filter_module.so;"?
Comment by ipp (n8V8r) - Tuesday, 01 January 2019, 13:07 GMT
Not initially, and having tested that suggestion it still does not work since it requires both modules in the main context:

load_module /usr/lib/nginx/modules/ngx_http_brotli_filter_module.so;
load_module /usr/lib/nginx/modules/ngx_http_brotli_static_module.so;

After that the error is gone. Having installed the package it was sort of expected to be loaded automatically without further user intervention.

Loading...