Apache http2 적용하기(mod_http2)

리눅스 서버에 Apache를 설치하게 되면, 기본 프로토콜은 HTTP/1.1을 기본으로 통신하게 되어 있다. Apache http2는 Apache 2.4.17 버전 부터 DSO 모듈로(mod_http2.so) HTTP/2를 지원한다.

HTTP/2(Hypertext Transfer Protocol Version 2)는 월드 와이드 웹에서 쓰이는 HTTP 프로토콜의 두 번째 버전이다.

Apache http2 적용

  • Alma Linux 9.4
  • Apache/2.4.57
~]# vi /etc/httpd/conf/httpd.conf

<IfModule http2_module>
ProtocolsHonorOrder On
Protocols h2 http/1.1
</IfModule>

wq:
~]# apache restart 

http2 적용 확인하기

크롬 개발자 도구에서 프로토콜을 확인하면 [h2]로 적용된 걸 확인할 수 있다. 적용이 되지 않은 웹 사이트의 경우 http/1.1로 표시가 된다.

Apache http2 적용-크롬 개발자도구에서 확인

Similar Posts