nano /etc/httpd/conf/extra/pagespeed.conf
<IfModule pagespeed_module>
ModPagespeed off
</IfModule>
<IfModule pagespeed_module>
ModPagespeed on
</IfModule>
curl -I domain.tld | grep -i pagespeed
Hi @Amit !
I'm not 100% certain without installing and testing for myself, but I'd try the following (make a backup of any files modified first!):
Code:nano /etc/httpd/conf/extra/pagespeed.conf
Add the following *if* the <IfModule pagespeed_module> section doesn't already exist:
Code:<IfModule pagespeed_module> ModPagespeed off </IfModule>
If the <IfModule pagespeed_module> section does exist already, change ModPageSpeed value to off. This should set it to Off by default for all domains.
Restart Apache and then, try to enable it on your domain by adding the following to it's .htaccess file:
Now, use curl to test for mod_pagespeed headers being returned for that one domain:Code:<IfModule pagespeed_module> ModPagespeed on </IfModule>
Code:curl -I domain.tld | grep -i pagespeed
Let me know if this works for you, please!![]()
Awesome! And the Pagespeed header is absent for the other domains when testing via curl? If so, then that is great!Hi scriptkitty i followed your instructions with one modification that have made changes in httpd-includes.conf instead of pagespeed.conf for being safe from override on updates and it works! here is output of after before changing changing the .htaccess of domain.Thanks for your solution.![]()
The line say sit all. Either disable mpm_prefork or just disable http2 in the directadmin.conf and this message will be gone. However, it's just a warning, it's not an error.Apache 2.4.27 and higher will not negotiate http2 with mpm_prefork. Please do not use mod_php or disable http2 in the directadmin.conf