A
A
Alexander2021-10-05 12:44:22
Apache HTTP Server
Alexander, 2021-10-05 12:44:22

How to set up ModPagespeed on Apache for a domain with https?

Installed the ModPagespeed module on the Apache server. The domain works through https. In the pagespeed.conf settings, I specified:

ModPagespeedFetchHttps enable
ModPagespeedMapOriginDomain "http://localhost" "https://site.ru"
ModPagespeedLoadFromFile "https://static.site.ru" "/var/www/web2a/data/www/site.ru/static/"


htaccess:
<IfModule pagespeed_module>
  ModPagespeed on
  ModPagespeedEnableFilters rewrite_css
  ModPagespeedEnableFilters combine_css
  ModPagespeedEnableFilters recompress_images
  ModPagespeedEnableFilters convert_jpeg_to_webp
  ModPagespeedEnableFilters collapse_whitespace
  ModPagespeedEnableFilters remove_comments
</IfModule>

For some reason it doesn't work.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question