5.2. コネクターの HTTP/2 を有効にする
server.xml ファイルでは、コネクター定義のアップグレードプロトコルはデフォルトですでに HTTP/2 に設定されています。
手順
-
JWS_HOME/tomcat/conf/server.xml設定ファイルを開きます。 コネクター定義で、
UpgradeProtocolクラス名がorg.apache.coyote.http2.Http2Protocolに設定されていることを確認します。以下に例を示します。
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" maxParameterCount="1000"> <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> <SSLHostConfig> <Certificate certificateKeystoreFile="conf/localhost-rsa.jks" certificateKeystorePassword="changeit" type="RSA" /> </SSLHostConfig> </Connector>設定の更新を適用するには、root ユーザーとして Red Hat JBoss Web Server を再起動します。
systemdを使用して Red Hat Enterprise Linux で JBoss Web Server を再起動するには、次のコマンドを入力します。# systemctl restart jws6-tomcat.servicestartup.shを使用して Red Hat Enterprise Linux で JBoss Web Server を再起動するには、次のコマンドを入力します。# JWS_HOME/sbin/shudown.sh # JWS_HOME/sbin/startup.shWindows Server 上で JBoss Web Server を再起動するには、次のコマンドを入力します。
# net restart tomcat10