Hisex 发表于 2017-3-7 13:15:28

apache 2.4 不支持http2么

必须用nginx?
apache 不支持么?

河妖 发表于 2017-3-7 16:37:46

默认apache没有编译http2模块所以不支持
1、安装支持动态库
yum -y install libnghttp2
可以按以下方法解决


2、进入Apache源码目录
cd /www/server/apache/src

3、重新编译Apache
./configure --prefix=/www/server/apache --enable-mods-shared=most --enable-headers --enable-mime-magic --enable-proxy --enable-so --enable-rewrite --with-ssl --enable-ssl --enable-deflate --with-pcre --with-included-apr --with-apr-util --enable-mpms-shared=all --with-mpm=prefork --enable-remoteip --enable-http2

4、重启服务
service httpd restart

vape 发表于 2017-4-26 22:55:15

本帖最后由 vape 于 2017-4-26 22:56 编辑

这个apache开启http2教程现在还可以用吗?跟Linux面板是不是一样的指令?
页: [1]
查看完整版本: apache 2.4 不支持http2么