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: Precompiling 2.4.17 with http/2 support |
|
Author |
|
clouseau
Joined: 06 May 2015 Posts: 18 Location: Serbia, Subotica
|
Posted: Mon 23 Nov '15 15:26 Post subject: Precompiling 2.4.17 with http/2 support |
|
|
Hello,
It seems that I have successfuly compiled Apache from source with h2 support. The module loads correctly (I think so), this is the entry from the log (debug mode with http2):
Code: | [Mon Nov 23 14:22:04.752608 2015] [http2:info] [pid 2179:tid 140273117747008] mod_http2 (v1.0.0, nghttp2 1.4.0), initializing...
[Mon Nov 23 14:22:04.752639 2015] [http2:debug] [pid 2179:tid 140273117747008] h2_h2.c(72): h2_h2, child_init
[Mon Nov 23 14:22:04.752644 2015] [http2:debug] [pid 2179:tid 140273117747008] h2_switch.c(54): h2_switch init
[Mon Nov 23 14:22:04.766140 2015] [mpm_event:notice] [pid 2179:tid 140273117747008] AH00489: Apache/2.4.17 (Unix) OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Mon Nov 23 14:22:04.766163 2015] [core:notice] [pid 2179:tid 140273117747008] AH00094: Command line: '/usr/local/apache2/bin/httpd'
[Mon Nov 23 14:22:04.766732 2015] [http2:debug] [pid 24290:tid 140273117747008] h2_conn.c(123): h2_workers: min=25 max=64, mthrpchild=25, thr_limit=64
[Mon Nov 23 14:22:04.766771 2015] [http2:debug] [pid 24290:tid 140273117747008] h2_workers.c(227): h2_workers: starting
[Mon Nov 23 14:22:04.767607 2015] [http2:debug] [pid 24289:tid 140273117747008] h2_conn.c(123): h2_workers: min=25 max=64, mthrpchild=25, thr_limit=64
[Mon Nov 23 14:22:04.767640 2015] [http2:debug] [pid 24289:tid 140273117747008] h2_workers.c(227): h2_workers: starting
[Mon Nov 23 14:22:04.769623 2015] [http2:debug] [pid 24288:tid 140273117747008] h2_conn.c(123): h2_workers: min=25 max=64, mthrpchild=25, thr_limit=64
[Mon Nov 23 14:22:04.769656 2015] [http2:debug] [pid 24288:tid 140273117747008] h2_workers.c(227): h2_workers: starting
|
My httpd.conf's inportant part looks like this:
Code: |
<IfModule http2_module>
LogLevel http2:debug
ProtocolsHonorOrder On
Protocols h2 h2c http/1.1
</IfModule
|
Still, I get no h2 functionality, I have started tapping in the dark, and I'm out of ideas.
Any hints?
The site is no secre - www.prosinger.net (don't mind the content, it's for testing only)
Thanks all! |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 23 Nov '15 15:50 Post subject: |
|
|
With curl to your site, I see:
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server did not agree to a protocol
It needs OpenSSL 1.0.2 and for the ciphers, see https://www.apachelounge.com/viewtopic.php?t=6804
Last edited by Steffen on Mon 23 Nov '15 16:35; edited 1 time in total |
|
Back to top |
|
clouseau
Joined: 06 May 2015 Posts: 18 Location: Serbia, Subotica
|
Posted: Mon 23 Nov '15 16:14 Post subject: |
|
|
Ok, thanks. I have preconpiled it with openSSL v1.0.2, should be fine now:
Code: |
[Mon Nov 23 15:05:04.374353 2015] [http2:info] [pid 25841:tid 139857499576128] mod_http2 (v1.0.0, nghttp2 1.4.0), initializing...
[Mon Nov 23 15:05:04.391589 2015] [mpm_event:notice] [pid 25841:tid 139857499576128] AH00489: Apache/2.4.17 (Unix) OpenSSL/1.0.2d configured -- resuming normal operations
|
yet, I still get a negative when testing the site with https://tools.keycdn.com/http2-test |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 23 Nov '15 16:34 Post subject: |
|
|
From here with Curl it is fine:
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
< HTTP/2.0 200
< date:Mon, 23 Nov 2015 14:28:52 GMT
< server:Apache/2.4.17 (Unix) OpenSSL/1.0.2d
< x-powered-by:PHP/5.6.14
< x-pingback:https://www.prosinger.net/xmlrpc.php
< x-mod-pagespeed:1.9.32.10-7423
< cache-control:max-age=0, no-cache
< vary:Accept-Encoding
< content-length:33216
< content-type:text/html; charset=UTF-8
Looks like that https://tools.keycdn.com/http2-test is buggy, also AL is not recognized as http2. |
|
Back to top |
|
clouseau
Joined: 06 May 2015 Posts: 18 Location: Serbia, Subotica
|
Posted: Mon 23 Nov '15 21:04 Post subject: |
|
|
Thanks a lot.
Firefoxes spdy/h2 indicator plugin also indicates that it's a http/2 site.
I'll build curl with h2 support tomorrow and dig on the whole matter some more |
|
Back to top |
|
clouseau
Joined: 06 May 2015 Posts: 18 Location: Serbia, Subotica
|
Posted: Wed 25 Nov '15 11:45 Post subject: |
|
|
I managed to compile curl with http2 support, so this is what I get:
Code: |
[root@knox ~]# curl -I --http2 https://www.prosinger.net
HTTP/1.1 200 OK
Date: Wed, 25 Nov 2015 09:43:40 GMT
Server: Apache/2.4.17 (Unix) OpenSSL/1.0.2d
X-Powered-By: PHP/5.6.14
X-Pingback: https://www.prosinger.net/xmlrpc.php
Cache-Control: max-age=0, no-cache
Content-Type: text/html; charset=UTF-8
|
It doesn't seem good.
while with e.g. google I get:
Code: |
[root@knox ~]# curl -I --http2 https://www.google.com
HTTP/2.0 302
cache-control:private
content-type:text/html; charset=UTF-8
location:https://www.google.de/?gfe_rd=cr&ei=9oJVVufLEoaJ8QeA9KfYBA
content-length:259
date:Wed, 25 Nov 2015 09:44:22 GMT
server:GFE/2.0
alternate-protocol:443:quic,p=1
alt-svc:quic="www.google.com:443"; p="1"; ma=600,quic=":443"; p="1"; ma=600
|
|
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 25 Nov '15 19:35 Post subject: |
|
|
Not sure about your curl but I get
Code: | C:\usr\curl>curl -k -I --http2 https://www.prosinger.net
HTTP/2.0 200
date:Wed, 25 Nov 2015 17:34:12 GMT
server:Apache/2.4.17 (Unix) OpenSSL/1.0.2d
x-powered-by:PHP/5.6.14
x-pingback:https://www.prosinger.net/xmlrpc.php
cache-control:max-age=0, no-cache
content-type:text/html; charset=UTF-8 |
|
|
Back to top |
|
clouseau
Joined: 06 May 2015 Posts: 18 Location: Serbia, Subotica
|
Posted: Thu 26 Nov '15 11:31 Post subject: |
|
|
What version of curl are you using, and with which nghttp2 version was it compiled?
Kind Regards,
Istvan |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 26 Nov '15 11:42 Post subject: |
|
|
Well, I'm lazy so it has been awhile but I expected something newer than 1.3.1
Code: | C:\Apache24\bin>curl --version
curl 7.44.0 (i386-pc-win32) libcurl/7.44.0 OpenSSL/1.0.2d zlib/1.2.8 libssh2/1.6.0 nghttp2/1.3.1
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp sm
tps telnet tftp
Features: AsynchDNS Largefile NTLM SSL libz HTTP2 |
|
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 26 Nov '15 12:39 Post subject: |
|
|
Dropping nghttp2/1.4.0 in there I still get the same result
Code: | C:\Apache24\bin>curl --version
curl 7.44.0 (i386-pc-win32) libcurl/7.44.0 OpenSSL/1.0.2d zlib/1.2.8 libssh2/1.6.0 nghttp2/1.4.0
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS Largefile NTLM SSL libz HTTP2
C:\Apache24\bin>curl -k -I --http2 https://www.prosinger.net
HTTP/2.0 200
date:Thu, 26 Nov 2015 10:38:30 GMT
server:Apache/2.4.17 (Unix) OpenSSL/1.0.2d
x-powered-by:PHP/5.6.14
x-pingback:https://www.prosinger.net/xmlrpc.php
cache-control:max-age=0, no-cache
content-type:text/html; charset=UTF-8 |
|
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
|
Back to top |
|
|
|
|
|
|