OpenResty1.25.3.1でBrotli解凍をしたく

#--------------------------------------

#--------------------------------------
OpenResty1.25.3.1でリバースプロキシ構築中です。
バックエンドからのレスポンスボディがBrotli圧縮されていた際
これを解凍して内容参照したく
ngx_brotliの追加インストールを試みているのですが上手くいきません。
OSはUbuntuです。

#--------------------------------------

#--------------------------------------
apt-get update
apt-get install openssl libssl-dev

cd /usr/local/src

openresty -v
nginx version: openresty/1.25.3.1

ネットから openresty-1.25.3.1.tar.gzを入手
cp /mnt/hgfs/vmtmp/openresty-1.25.3.1.tar.gz .
tar zxvf openresty-1.25.3.1.tar.gz

git clone https://github.com/google/ngx_brotli.git
cd ../ngx_brotli
git submodule update --init

cd ../openresty-1.25.3.1
./configure --prefix=/usr/local/openresty/nginx --with-compat --add-dynamic-module=../ngx_brotli

gmake
ls /usr/local/src/openresty-1.25.3.1/build/nginx-1.25.3/objs
ngx_http_brotli_filter_module.so

nginx.confに以下追記
load_module /usr/local/src/openresty-1.25.3.1/build/nginx-1.25.3/objs/ngx_http_brotli_filter_module.so;

service openresty stop
service openresty start ←エラーで失敗
service openresty statusで見ると
「互換性の無いバイナリです」的なエラーが表示されています。

コメントを投稿

0 コメント