# Yunohost 3 & Http2

**URL:** https://forum.yunohost.org/t/yunohost-3-http2/5590
**Category:** Support
**Tags:** english
**Created:** [September 1, 2018, 12:18pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590 "2018-09-01T12:18:30Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![genma](https://forum.yunohost.org/user_avatar/forum.yunohost.org/genma/32/746_2.png) [@genma](https://forum.yunohost.org/u/genma)
#### Post date: [September 1, 2018, 12:18pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/1 "2018-09-01T12:18:31Z")

</div>

On Yunohost 3 (Debian 9), the nginx version is 1.10 and it support Http2. In the nginx configuration files, there’s the following lines commented  
`
# Disabling http2 for now as it’s causing weird issues with curl
#listen 443 ssl http2;
#listen [::]:443 ssl http2;
`  
Does someone test http2 on this version? Does it works? Any known problems?

---

<div class="post-metadata">

### Author: ![frju365](https://forum.yunohost.org/user_avatar/forum.yunohost.org/frju365/32/7108_2.png) [@frju365](https://forum.yunohost.org/u/frju365)
#### Post date: [September 1, 2018, 12:23pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/2 "2018-09-01T12:23:20Z")

</div>

In fact, it works, very well, and I enabled http2 in every website I have. There is just one known problem : curl installation. Indeed, http2 is incompatible with curl (at least we don’t know any solution). So, you can’t install wordpress if http2 is enable for example. But ofc, after installation, if you reenable is, it will work (same for upgrade).

There is no other problem for now we discovered.

---

<div class="post-metadata">

### Author: ![genma](https://forum.yunohost.org/user_avatar/forum.yunohost.org/genma/32/746_2.png) [@genma](https://forum.yunohost.org/u/genma)
#### Post date: [September 1, 2018, 12:24pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/3 "2018-09-01T12:24:39Z")

</div>

Thanks for so quick answer. I enable http2 on my different domains & subdomains and I’ll see if I encountered any problem, probably not.

---

<div class="post-metadata">

### Author: ![frju365](https://forum.yunohost.org/user_avatar/forum.yunohost.org/frju365/32/7108_2.png) [@frju365](https://forum.yunohost.org/u/frju365)
#### Post date: [September 1, 2018, 2:40pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/4 "2018-09-01T14:40:23Z")

</div>

Then, keep in mind that if you install wordpress, you will have to disable http2 during installation and then reenable it.

---

<div class="post-metadata">

### Author: ![Lapineige](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/l/bc79bd/32.png) [@Lapineige](https://forum.yunohost.org/u/Lapineige)
#### Post date: [September 1, 2018, 4:43pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/5 "2018-09-01T16:43:34Z")

</div>

Same for the updates ?

@genma I’m using http2 too since wordpress installation & yunohost upgrade, it’s working fine :slight\_smile

---

<div class="post-metadata">

### Author: ![frju365](https://forum.yunohost.org/user_avatar/forum.yunohost.org/frju365/32/7108_2.png) [@frju365](https://forum.yunohost.org/u/frju365)
#### Post date: [September 1, 2018, 5:32pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/6 "2018-09-01T17:32:03Z")

</div>

No, I checked. Only for installation of wordpress.

---

<div class="post-metadata">

### Author: ![Josue](https://forum.yunohost.org/user_avatar/forum.yunohost.org/josue/32/933_2.png) [@Josue](https://forum.yunohost.org/u/Josue)
#### Post date: [September 1, 2018, 8:14pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/7 "2018-09-01T20:14:42Z")

</div>

Hello,

I don’t know if it solve the http2 issue, but if you force curl to use https it work on my side :

```auto
# curl domain.tld
���
# curl https://domain.tld
<html>
<head><title>302 Found</title><script type="text/javascript" src="/ynhpanel.js"></script></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
# 

```

---

<div class="post-metadata">

### Author: ![frju365](https://forum.yunohost.org/user_avatar/forum.yunohost.org/frju365/32/7108_2.png) [@frju365](https://forum.yunohost.org/u/frju365)
#### Post date: [September 2, 2018, 10:08am UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/8 "2018-09-02T10:08:00Z")

</div>

Don’t know. We need to test it with wordpress installation…

---

<div class="post-metadata">

### Author: ![antanof](https://forum.yunohost.org/user_avatar/forum.yunohost.org/antanof/32/3134_2.png) [@antanof](https://forum.yunohost.org/u/antanof)
#### Post date: [September 6, 2018, 5:32am UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/9 "2018-09-06T05:32:03Z")

</div>

i think the nginx configuration is not optimized for http2: including add\_header (preload) and gzip.

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [September 6, 2018, 11:32am UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/10 "2018-09-06T11:32:32Z")

</div>

@antanof : uh could you elaborate ?

---

<div class="post-metadata">

### Author: ![antanof](https://forum.yunohost.org/user_avatar/forum.yunohost.org/antanof/32/3134_2.png) [@antanof](https://forum.yunohost.org/u/antanof)
#### Post date: [September 6, 2018, 7:48pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/11 "2018-09-06T19:48:15Z")

</div>

> **[HTTP/2 PUSH vs HTTP Preload | Dexecure](https://dexecure.com/blog/http2-push-vs-http-preload/)**
>
> HTTP/2 PUSH is a feature which lets server pre-emptively push resources to the client (without a corresponding request). HTTP Preload is a way to indicate to the browser resources it would require while loading the current page. In this post, we will...

  
And headers are compressed with the purpose‑built HPACK protocol (rather than gzip, as in SPDY) :  

> **[7 Tips to Improve HTTP2 Performance | NGINX](https://www.nginx.com/blog/7-tips-for-faster-http2-performance/)**
>
> Achieve the highest HTTP/2 performance with these 7 tips so you can focus on creating fast, effective, secure applications that are easy to maintain

---

<div class="post-metadata">

### Author: ![Benance](https://forum.yunohost.org/user_avatar/forum.yunohost.org/benance/32/607_2.png) [@Benance](https://forum.yunohost.org/u/Benance)
#### Post date: [September 19, 2018, 7:03am UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/12 "2018-09-19T07:03:14Z")

</div>

Hello.  
I’m very interessed about this feature in nginx.  
If the curl problem is fixed with @Josue solution, is there a chance to see this feature enabled by default in a future update?

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [September 19, 2018, 12:24pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/13 "2018-09-19T12:24:50Z")

</div>

Yes, but we need to be sure that it fixes the issue somehow … So it’s up to anyone to test this - though it’s not really trivial to check. As far as I remember, the real issue was with package\_check running on Wordpress with http2 enabled.

That might have something to do with the options used here [https://github.com/YunoHost/yunohost/blob/477cf18a689c9cea0aa5d3ad729a162c120019d7/data/helpers.d/utils#L258](https://github.com/YunoHost/yunohost/blob/477cf18a689c9cea0aa5d3ad729a162c120019d7/data/helpers.d/utils#L258)

---

<div class="post-metadata">

### Author: ![Josue](https://forum.yunohost.org/user_avatar/forum.yunohost.org/josue/32/933_2.png) [@Josue](https://forum.yunohost.org/u/Josue)
#### Post date: [September 20, 2018, 9:58am UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/14 "2018-09-20T09:58:20Z")

</div>

I tried on the CI a version with http2 and as I see, it’s not really a problem about http2. Adding a `sleep 2` [here](https://github.com/YunoHost-Apps/wordpress_ynh/blob/master/scripts/install#L147) fixed the install with http2.

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [September 20, 2018, 12:35pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/15 "2018-09-20T12:35:41Z")

</div>

Well that look like a nice, easy fix 😛 Maybe we could give http2 an other try then

---

<div class="post-metadata">

### Author: ![Josue](https://forum.yunohost.org/user_avatar/forum.yunohost.org/josue/32/933_2.png) [@Josue](https://forum.yunohost.org/u/Josue)
#### Post date: [September 20, 2018, 1:44pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/16 "2018-09-20T13:44:36Z")

</div>

Yes, we need to test more, but I just to say that it should be possible to enable http2. And if it broke something it should be easy to fix.

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 18, 2023, 8:19pm UTC](https://forum.yunohost.org/t/yunohost-3-http2/5590/17 "2023-01-18T20:19:45Z")

</div>


