user bitrix;
worker_processes 8;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
worker_rlimit_nofile 10240;
events {
use epoll;
worker_connections 10240;
}
http {
pagespeed on;
pagespeed FileCachePath "/var/cache/ngx_pagespeed/";
pagespeed RewriteLevel CoreFilters;
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/15c25387-d7a7-4c62-9bbd-d7eb7adbca45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
nginx: [warn] [ngx_pagespeed 1.12.34.2-0] [0201/145401:WARNING:google_message_handler.cc(56)] Invalid filter name: convert_png_to_webp
nginx: [emerg] "pagespeed" directive "EnableFilters convert_png_to_webp" Failed to enable some filters. in /etc/nginx/nginx.conf:16
nginx: configuration file /etc/nginx/nginx.conf test failed
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/e84ff589-47fe-4614-a69b-c99edfff25c9%40googlegroups.com.
Sorry, my bad.You can enable the debug filter by adding "?PageSpeedFilters=+debug" to the url.That shows messages like:<!--4xx status code, preventing rewriting of https://sochi-elite.com/upload/resize_cache/iblock/80e/228_160_2/80eed0c561ac6dbd3aa090bad818053c.jpg-->I looks like somehow the module is not able to fetch any image resources in /upload.Can you relate that to something specific in nginx.conf ?Otto
On Thu, Feb 1, 2018 at 12:57 PM Петя Пробкин <denis...@gmail.com> wrote:
Yes, I do it and get whis test fail:
nginx: [warn] [ngx_pagespeed 1.12.34.2-0] [0201/145401:WARNING:google_message_handler.cc(56)] Invalid filter name: convert_png_to_webp
nginx: [emerg] "pagespeed" directive "EnableFilters convert_png_to_webp" Failed to enable some filters. in /etc/nginx/nginx.conf:16
nginx: configuration file /etc/nginx/nginx.conf test failed
четверг, 1 февраля 2018 г., 14:10:55 UTC+4 пользователь Otto van der Schaaf написал:--Can you try adding the following?:pagespeed EnableFilters convert_png_to_webp;
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/e84ff589-47fe-4614-a69b-c99edfff25c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAHqmWiPFFDGNQT6u%2BSrqYHpd8SXcDdA%3DdNyrcRh_XdHuKYFXDw%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/d3c4e2f5-0dfc-49da-b975-e293e2b56748%40googlegroups.com.
pagespeed Domain http*://*.sochi-elite.com;
and change the protocol agnostic /resource in the resources url to an absolute path https://sochi-elite.com/resource ?
http {
pagespeed on;
pagespeed FileCachePath "/var/cache/ngx_pagespeed/";
#pagespeed RewriteLevel CoreFilters;
pagespeed EnableFilters convert_jpeg_to_webp,convert_to_webp_animated;
pagespeed MapOriginDomain "https://localhost" "https://sochi-elite.com";
pagespeed FetchHttps enable,allow_self_signed,allow_unknown_certificate_authority,allow_certificate_not_yet_valid;
pagespeed SslCertDirectory /etc/letsencrypt/live/sochi-elite.com;
pagespeed SslCertFile /etc/letsencrypt/live/sochi-elite.com/cert.pem;
pagespeed CriticalImagesBeaconEnabled false;
#pagespeed PreserveUrlRelativity on;
pagespeed JpegRecompressionQuality 85;
pagespeed ImageRecompressionQuality 85;
#pagespeed ImageInlineMaxBytes 2048;
#pagespeed LowercaseHtmlNames on;
pagespeed FileCacheSizeKb 204800;
pagespeed FileCacheCleanIntervalMs 600000;
pagespeed FileCacheInodeLimit 500000;
pagespeed DisableFilters add_head;
pagespeed Domain http*://*.sochi-elite.com;
pagespeed LoadFromFile "https://sochi-elite.com/upload/" "/home/bitrix/www/upload/";
# Ensure requests for pagespeed optimized resources go to the pagespeed handler # and no extraneous headers get set. location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" { add_header "" ""; } location ~ "^/pagespeed_static/" { } location ~ "^/ngx_pagespeed_beacon$" { }