Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Pagespeed Installed, not working (Apache 2.4) #2071

Open
Jefak007 opened this issue Jun 26, 2021 · 3 comments
Open

Pagespeed Installed, not working (Apache 2.4) #2071

Jefak007 opened this issue Jun 26, 2021 · 3 comments

Comments

@Jefak007
Copy link

Hi, i have Pagespeed Mod installed on my site (Apache 2.4) but it has refused to work.
site is mpmania.com, please help.

@Jefak007
Copy link
Author

Pagespeed.conf file has

ModPagespeed on
ModPagespeedDisableRewriteOnNoTransform off
ModPagespeedFetchHttps enable
ModPagespeedFileCachePath "/var/cache/pagespeed/"
ModPagespeedFileCacheSizeKb 102400
ModPagespeedFileCacheCleanIntervalMs 3600000
ModPagespeedFileCacheInodeLimit 500000

ModPagespeedEnableFilters prioritize_critical_css
#ModPagespeedEnableFilters defer_javascript
ModPagespeedEnableFilters combine_javascript
ModPagespeedEnableFilters sprite_images
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters recompress_png
ModPagespeedEnableFilters convert_png_to_jpeg,convert_jpeg_to_webp
ModPagespeedEnableFilters collapse_whitespace,remove_comments
#ModPagespeedRewriteLevel OptimizeForBandwidth
ModPagespeedRewriteLevel CoreFilters
ModPagespeedInPlaceResourceOptimization off

@Lofesa
Copy link
Contributor

Lofesa commented Jun 26, 2021

What is yout http.conf?
To work, pagespeed.conf must be included in the apache config file.

@Jefak007
Copy link
Author

Gotten pagespeed to work, but having issues...

here is my pagespeed.conf
ModPagespeed on
ModPagespeedFileCachePath "/var/cache/pagespeed/"
ModPagespeedLogDir "/var/log/pagespeed"
ModPagespeedFileCacheSizeKb 102400
ModPagespeedFileCacheCleanIntervalMs 3600000
ModPagespeedFileCacheInodeLimit 500000
ModPagespeedInPlaceResourceOptimization on

ModPagespeedDomain http*://.mpmania.com
ModPagespeedDomain http
://e6q6j4m4.stackpathcdn.com/
ModPagespeedDomain http*://i0.wp.com/
ModPagespeedDomain http://mpmania.com/wp-content/themes/publisher/style-7.10.0.min.css
ModPagespeedDomain http://mpmania.com/wp-content/themes/publisher-child/style.css

ModPagespeedFetchHttps enable

Certificate Authorities directory, not your domain SSL keys

ModPagespeedSslCertDirectory /etc/pki/tls/certs

Web Server's HTTPS client SSL key, not your domain SSL keys

ModPagespeedSslCertFile /etc/pki/tls/cert.pem

for httpd.conf

ModPagespeed On
ModPagespeedInheritVHostConfig on
ModPagespeedFileCachePath "/var/cache/mod_pagespeed/"
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters combine_heads
ModPagespeedEnableFilters flatten_css_imports

Direct Apache to send all HTML output to the mod_pagespeed

output handler.

AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html

#ModPagespeedEnableFilters convert_jpeg_to_webp
ModPagespeedEnableFilters collapse_whitespace,remove_comments
ModPagespeedEnableFilters extend_cache
ModPagespeedMaxCacheableContentLength 66777216
ModPagespeedModifyCachingHeaders off
ModPagespeedForceCaching on
ModPagespeedRewriteLevel OptimizeForBandwidth
ModPagespeedEnableFilters rewrite_style_attributes_with_url
#ModPagespeedEnableFilters rewrite_style_attribute (had to comment it cos it was breaking the site)
ModPagespeedEnableFilters fallback_rewrite_css_urls

ModPagespeedEnableFilters insert_ga
ModPagespeedAnalyticsID UA-4XXXXXXX-1
ModPagespeedUseAnalyticsJs false

Header set Cache-Control "max-age=2592000, public"
<FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=86400, public"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants