You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2020/10/25 08:36:22 UTC

[GitHub] [incubator-pagespeed-ngx] Lofesa commented on issue #1716: How to configure additional modules to nginx after installation?

Lofesa commented on issue #1716:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1716#issuecomment-716112383


    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 --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter
 _module=dynamic --with-http_geoip_module=dynamic --with-threads --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-stream_geoip_module=dynamic --with-http_slice_module --with-mail --with-mail_ssl_module --with-compat --with-file-aio --with-http_v2_module **--add-module=/usr/src/ngxpagespeed** --with-ld-opt='-Wl,-z,relro,--start-group -lapr-1 -laprutil-1 -licudata -licuuc -lpng -lturbojpeg -ljpeg'
   
   That´s the output of the compile options. Have you compile the module w/o errors?
   From this output I see **--add-module=/usr/src/ngxpagespeed**, in this directory is where the source code of pagespeed come at the compilation time,  If you install nginx+pagespeed from a package maybe empty.
   But the modules must reside at **--modules-path=/usr/lib/nginx/modules** , so in this directory must be the .so files.
   In the nginx.conf ( must be here. **--conf-path=/etc/nginx/nginx.conf** ) you need to include:
   **load_module /usr/lib/nginx/modules/ngx_pagespeed.so;** before the http block, at the same level you have user or worker_processes
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org