HTTP2 in EA4 (Rough Draft)

Well, I stumbled through getting it working. Now I need to document all I did, wipe the VM and make sure it works from scratch.

EDIT 7/15: I’m missing something, because on a clean install the h2 offer is there, but it does not upgrade. I have all the crap written down, so I’ll post a good walkthrough as soon as I find the issue.

NEW POST IS UP.

Basically:
Create yum conf repo with priority above EA4(20), grab and modify spec files for openssl(opt/ssl), nghttp2(OPENSSL_LIBS=/opt/ssl) and ea-apache(–enable-http2=static \ –with-ssl=/opt/ssl \ –enable-proxy-fdpass \ –disable-proxy-hcheck \), cram openssl down the system’s throat with rpm -i --force --nodeps openssl-1.0.2h-1.x86_64.rpm, then install just the libs for nghttp2. Can’t remember which package I installed, right now, probably libnghttp2-1.12.0-0.x86_64.rpm, since the full package had too many deps.
Dump RPMs in repo, createrepo it.

Use EA4 to get apache down to basics, then uninstall ea-apache24. Yum install ea-apache24 and go to town in EA4

So, if a linux n00b like me, who didn’t even know how to work with rpm files, can get this done, then you surely can.
I don’t know what the beef is with Cpanel taking over OpenSSL rpm distribution, but what do I know?

Don’t ask me for help. I don’t know what the fuck I’m doing.

DO NOT USE MTM-ITK. It appears to not be compatible with http2.

* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=HURRDURR
* start date: Jul 13 00:00:00 2016 GMT
* expire date: Oct 11 23:59:59 2016 GMT
* issuer: C=US; ST=TX; L=Houston; O=cPanel, Inc.; CN=cPanel, Inc. Certification Authority
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* TCP_NODELAY set
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x2371100)
} [5 bytes data]
> GET / HTTP/1.1
> Host: HURRDURR
> User-Agent: curl/7.47.1
> Accept: */*
>
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
} [5 bytes data]
< HTTP/2.0 200
< date:Wed, 13 Jul 2016 19:00:19 GMT
< server:Apache
< content-length:1329
< content-type:text/html;charset=ISO-8859-1
<
{ [1329 bytes data]
100 1329 100 1329 0 0 2407 0 --:--:-- --:--:-- --:--:-- 2411
* Connection #0 to host HURRDURR left intact

Index of /

 

This entry was posted in Tech and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.