如何在 Bitnami 堆栈中禁用 pagespeed?

How to disable pagespeed in the Bitnami stack?

Bitnami 堆栈默认启用 pagespeed。在开发过程中,它不会被使用。如何在 bitnami 堆栈中禁用 pagespeed?

lampstack-x.x.x/apache2/conf/pagespeed.conf 中将 ModPagespeed on 更改为 ModPagespeed off 然后重新启动服务器

如何禁用 PageSpeed?

要禁用 PageSpeed,请按照下列步骤操作:

Comment out the following lines in the installdir/apache2/conf/httpd.conf file:

 Include conf/pagespeed.conf
 Include conf/pagespeed_libraries.conf

参考:https://docs.bitnami.com/installer/components/pagespeed/

您可以使用以下命令在带有 WordPress 的 ligthsail box 上执行此操作。

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