Apache调整PHP配置解决HTTP2不生效的问题
Apache自从2.4.17版本就开始支持http2了,但是Apache的php支持要使用fpm的形式。 下面就是开启支持的方法, 原文链接
apachectl stop
apt-get install php7.1-fpm # Install the php-fpm from your PHP repository. This package name depends on the vendor.
a2enmod proxy_fcgi setenvif
a2enconf php7.1-fpm # Again, this depends on your PHP vendor.
a2dismod php7.1 # This disables mod_php.
a2dismod mpm_prefork # This disables the prefork MPM. Only one MPM can run at a time.
a2enmod mpm_event # Enable event MPM. You could also enable mpm_worker.
apachectl start