mbautista opened a new issue #1566: BeaconUrl uses HTTP instead of HTTPS + LoadFromFile not working URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1566 Hello, We experience 2 problems since we moved from : Linux Debian 8.8 + nginx 1.10.3 + ngx_pagespeed 1.11.33.2-0 (from deb http://packages.dotdeb.org jessie-nginx-http2 all) to : Linux Debian 9.4 + nginx 1.12.2 + ngx_pagespeed 1.13.35.2 (from deb https://packagecloud.io/DaryL/libnginx-mod-pagespeed/debian/ stretch main) Both servers uses HTTPS with http/2 and memcached, nginx+pagespeed config are exactly the same. The 2 problems on the new config are : - Pagespeed ignores LoadFromFile (all files are loaded from HTTP) - Some images are loaded via HTTP instead of HTTPS (mixed content), I think this is related to Pagespeed using http:// in the beacon URL instead of HTTPS Does anyone have an idea of how to fix theses problems please ? /etc/nginx/nginx.conf ``` nginx { # ... nginx config here ... include snippets/pagespeed.conf; } ``` /etc/nginx/sites-enabled/vhost.conf ``` server { listen 80; listen [::]:80; server_name www.example.com; return 301 https://$host$request_uri; } server{ listen 443 ssl http2; listen [::]:443 ssl http2; server_name www.example.com; # ... SSL config here ... include snippets/pagespeed-server.conf; } ``` /etc/nginx/snippets/pagespeed.conf : ``` pagespeed on; pagespeed FileCachePath "/var/tmp"; pagespeed LogDir "/var/log/pagespeed"; pagespeed RewriteLevel CoreFilters; pagespeed EnableFilters prioritize_critical_css; pagespeed EnableFilters sprite_images,lazyload_images; pagespeed EnableFilters convert_png_to_jpeg,convert_jpeg_to_webp; pagespeed EnableFilters collapse_whitespace; pagespeed EnableFilters defer_javascript; pagespeed EnableFilters insert_dns_prefetch; pagespeed EnableFilters canonicalize_javascript_libraries; pagespeed FetchHttps enable; pagespeed LoadFromFile "https?://$host/media" "$document_root/media"; pagespeed LoadFromFile "https?://$host/var" "$document_root/var"; pagespeed LoadFromFile "https?://$host/skin" "$document_root/skin"; pagespeed Disallow "*/admin/*"; pagespeed Disallow "*index.php/admin/*"; pagespeed MemcachedServers "127.0.0.1:11211"; pagespeed LoadFromFileCacheTtlMs 86400000; ``` pagespeed-server.conf : ``` # 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$" { } ``` I've tried to override the beaconUrl with : `pagespeed BeaconUrl "https://www.example.com/ngx_pagespeed_beacon";` But it doesn't seem to work.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
