linux - gzip_static unknown directive when compiled with option --with-http_gzip_static_module? -


hi compiled nginx ngx_pagespeed , --with-http_gzip_static_module.

but still got gzip_static unknown directive error.

details:

./configure \ --prefix=/etc/nginx  \ --sbin-path=/usr/sbin/nginx  \ --modules-path=/usr/lib/nginx/modules  \ --conf-path=/etc/nginx/nginx.conf  \ --error-log-path=/var/log/nginx/error.log  \ --http-log-path=/var/log/nginx/access.log  \ --pid-path=/var/run/nginx.pid  \ --lock-path=/var/run/nginx.lock  \ --user=nginx  \ --group=nginx  \ --with-compat  \ --with-threads  \ --with-http_addition_module  \ --with-http_random_index_module  \ --with-http_realip_module  \ --with-http_secure_link_module  \ --with-http_slice_module  \ --with-http_v2_module    \ --with-http_ssl_module \ --with-http_gzip_static_module \ --add-dynamic-module=$home/ngx_pagespeed make  sudo make install   deployer@vm-54-172-ubuntu:/etc/nginx/sites-enabled$ nginx -v nginx version: nginx/1.13.3 built gcc 4.8.4 (ubuntu 4.8.4-2ubuntu1~14.04.3) built openssl 1.0.1f 6 jan 2014 tls sni support enabled configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --user=nginx --group=nginx --with-compat --with-threads --with-http_addition_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_v2_module --with-http_ssl_module --with-http_gzip_static_module --add-dynamic-module=/home/deployer/ngx_pagespeed   deployer@vm-54-172-ubuntu:/etc/nginx/sites-enabled$ sudo service nginx restart  * restarting nginx nginx                                                                                                                                                                                   nginx: [emerg] unknown directive "gzip_static" in /etc/nginx/sites-enabled/callmeadoctor_production:31 nginx: configuration file /etc/nginx/nginx.conf test failed 

is gzip_static conflicting ngx_pagespeed module ?

how can fix except removing gzip_static on ?

thanks !


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -