I'm running WHM v96.09 along with Mod PageSpeed version 1.14.36.1-2.2.4.cpanel, originally installed via EasyApache 4.
There are several sites which I prevent the module from running on using the following code in the root .htaccess file (as referenced at the bottom of this WHM page).
Below is my full .htaccess file (see the 'IfModule pagespeed_module' line). I've not made any recent changes:
This has always worked perfectly, that is until this morning. Now the 'ModPagespeed off' command in each domain's .htaccess file has no effect and Mod Pagespeed is running on all sites. Have restarted Apache + PHP-FPM but it didn't help.
Does anyone have any ideas?
There are several sites which I prevent the module from running on using the following code in the root .htaccess file (as referenced at the bottom of this WHM page).
Below is my full .htaccess file (see the 'IfModule pagespeed_module' line). I've not made any recent changes:
Code:
Options +FollowSymLinks
RewriteEngine on
ErrorDocument 401 default
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
SetOutputFilter DEFLATE
Header unset ETag
FileETag None
ExpiresActive On
ExpiresDefault "access plus 1 month"
# 1 MONTH
<filesMatch "\.(js|css|jpg|jpeg|png|gif)$">
Header set Cache-Control "max-age=604800, public"
</filesMatch>
# No need for the .php extension
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ $1.php
# All URLs should be secure HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://mysite.com/$1 [R=301,L]
<IfModule pagespeed_module>
ModPagespeed off
</IfModule>
AuthType Basic
AuthName "Mysite"
AuthUserFile "/home/mysite/.htpasswds/public_html/passwd"
require valid-user
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Does anyone have any ideas?
Last edited: