Bitnami堆栈默认启用了pagespeed。在开发过程中它不会被使用。如何禁用bitnami堆栈中的pagespeed?
答案 0 :(得分:9)
在ModPagespeed on
中将ModPagespeed off
更改为lampstack-x.x.x/apache2/conf/pagespeed.conf
,然后重新启动您的服务器
答案 1 :(得分:5)
如何禁用PageSpeed?
要停用PageSpeed,请按以下步骤操作:
Comment out the following lines in the installdir/apache2/conf/httpd.conf file:
Include conf/pagespeed.conf
Include conf/pagespeed_libraries.conf
答案 2 :(得分:0)
您可以使用以下命令在WordPress的ligthsail框上执行此操作。
sudo vim /opt/bitnami/apache2/conf/httpd.conf
通过输入/ pagespeed来搜索文件
然后按I插入,然后注释掉这两行。
#Include conf/pagespeed.conf
#Include conf/pagespeed_libraries.conf
重新启动apache
sudo /opt/bitnami/ctlscript.sh restart apache