Add HTTP/2 support

- mod_http2
- Add "Protocol" statement to VHosts
This commit is contained in:
Sven Velt 2016-10-25 22:55:17 +02:00
parent 8ad64c7f2c
commit d9f2bccd7f
4 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1 @@
LoadModule http2_module /usr/libexec/httpd/mod_http2.so

View file

@ -4,6 +4,10 @@
ServerAdmin webmaster@localhost
DocumentRoot "/srv/www/apache"
<IfModule http2_module>
Protocols h2c http/1.1
</IfModule>
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/000-default.error.log
CustomLog ${APACHE_LOG_DIR}/000-default.access.log combined

View file

@ -14,6 +14,10 @@
ErrorLog ${APACHE_LOG_DIR}/001-default-ssl.error.log
CustomLog ${APACHE_LOG_DIR}/001-default-ssl.access.log combined
<IfModule http2_module>
Protocols h2 http/1.1
</IfModule>
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on

View file

@ -13,6 +13,10 @@
ErrorLog ${APACHE_LOG_DIR}/002-default-ssl.error.log
CustomLog ${APACHE_LOG_DIR}/002-default-ssl.access.log combined
<IfModule http2_module>
Protocols h2 http/1.1
</IfModule>
SSLEngine on
SSLCertificateFile "/etc/apache/server.crt"
SSLCertificateKeyFile "/etc/apache/server.key"