Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Enabling HTTP2 in Apache Issue |
|
Author |
|
zonetrooperex
Joined: 26 Jul 2013 Posts: 6 Location: Australia
|
Posted: Sat 21 Jan '17 4:13 Post subject: Enabling HTTP2 in Apache Issue |
|
|
I'm having an issue enabling http2 in Apache. I was hoping someone could enlighten me
My server consists of:
* Apache 2.4.25 Win64
* php-7.1.1-Win32-VC14-x64
(both from the Apache Lounge)
In "httpd.conf"'s LoadModules section I have added the code:
# Enable http2 module
LoadModule http2_module modules/mod_http2.so
<IfModule http2_module>
# Configure HTTP2 support
ProtocolsHonorOrder On
Protocols h2 http/1.1
LogLevel http2:info
</IfModule>
When I start or restart Apache I get no errors in the error.log but the entry:
[http2:info] [pid 260904:tid 424] AH03090: mod_http2 (v1.8.3, feats=, nghttp2 1.17.0), initializing...
All browsers show the protocol of a loaded page as "http/1.1" not the expected "h2",
except Microsoft Edge shows the "Upgrade" as "h2".
Any advice would be much appreciated |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Sun 22 Jan '17 16:43 Post subject: |
|
|
HTTP/2 works only for https-sites. Are you using a site with a SSL-certificate to test it? |
|
Back to top |
|
zonetrooperex
Joined: 26 Jul 2013 Posts: 6 Location: Australia
|
Posted: Tue 24 Jan '17 5:50 Post subject: |
|
|
Yes I am, I've created a self-signed SSL certificate on localhost. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 25 Jan '17 6:52 Post subject: |
|
|
What's your SSLProtocol and SSLCipherSuite set to in httpd-ssl.conf? |
|
Back to top |
|
zonetrooperex
Joined: 26 Jul 2013 Posts: 6 Location: Australia
|
Posted: Fri 29 Dec '17 16:37 Post subject: HTTP2 Reply |
|
|
ProtocolsHonorOrder On
Protocols h2 h2c http/1.1
LogLevel http2:info
SSLCipherSuite ALL:+HIGH:!ADH:!EXP:!SSLv2:!SSLv3:!MEDIUM:!LOW:!NULL:!aNULL
SSLProtocol all -TLSv1.1 -TLSv1 -SSLv2 -SSLv3
Apache Error Log Shows:
[Sat Dec 30 01:59:14.289613 2017] [http2:info] [pid 12004:tid 600] AH03090: mod_http2 (v1.10.13-git, feats=, nghttp2 1.27.0), initializing...
Firefox Shows:
|
|
Back to top |
|
|
|
|
|
|