我正在尝试在wildfly 10.1上启用HTTP2。
根据official declarations,我要做的就是将浏览器指向端口8443。我这样做了,实际上,测试证书是自动创建的。
从日志中:
[org.jboss.as.domain.management.security](默认I / O-3)WFLYDM0113: 在生成了自签名证书 C:\ wildfly-10.1.0.Final \ Standalone \ configuration \ application.keystore。 请注意,自签名证书不安全,应该 仅用于测试目的。不要使用此自签名 生产中的证书。
将侦听器配置为允许HTTP2。
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<filter-ref name="server-header"/>
<filter-ref name="x-powered-by-header"/>
</host>
</server>
当我使用开发人员工具检查首页的传输协议时,我发现它仍在使用 http / 1.1