Add HTTP/2 support
- mod_http2 - Add "Protocol" statement to VHosts
This commit is contained in:
parent
8ad64c7f2c
commit
d9f2bccd7f
1
mods-available/http2.load
Normal file
1
mods-available/http2.load
Normal file
|
@ -0,0 +1 @@
|
|||
LoadModule http2_module /usr/libexec/httpd/mod_http2.so
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue