Open AmiOta opened 5 years ago
Hello,
Maybe you should look at Serf/1.3.9
in regular apache2 access logs for the domain and check responses for fetched resources ?
Eric
I'm getting an error 304:
"GET .../jquery.cookie.js HTTP/1.1" 304 - "..." "Serf/1.3.9 (mod_pagespeed/1.13.35.2-0)"
Http 304 indicates that the resource was not modified. That's not an error, I think it is fine.
Note I have come across another configuration that can cause this error:
Nginx Load Balancer --- proxy_protocol -> Backend Nginx
Two issues:
1) pagespeed will attempt to perform a standard http/https request to the proxy_protocol
port unless you use MapOriginDomain
to remap it to a port that is not using proxy_protocol
.
2) pagespeed will fail to fetch resources via HTTPS due to lack of IPv6 support when the backend server has no IPv6 network
The solution in my instance was to configure two servers like so:
server
{
listen 8443 ssl http2 proxy_protocol;
port_in_redirect off;
real_ip_header proxy_protocol;
pagespeed MapOriginDomain http://localhost:8080 https://example.com example.com;
root /home/example/public_html;
}
server
{
listen localhost:8080;
root /home/example/public_html;
}
The reason for the second server is so that any dynamic processing via PHP, etc... doesn't get bypassed by using direct file access. This is not shown in the above example. This is also faster then performing another HTTPS request as there is no need to perform any encryption, nor is there any risk as the second server is only allowing loopback connections on localhost.
Hi,
After installing PageSpeed I am having many warnings in the error_log every 2 seconds, my page sometimes loads fast, but sometimes it does not load the styles or the images and the ones that load take a long time.
PageSpeed: 1.13.35.2-0 Apache: 2.2.15 OS: Red Hat Enterprise Linux Server release 6.6 (Santiago)
PageSpeed Config (pagespeed.conf):
Error log: