# HTTP/2, problem with enabling

**URL:** <https://help.nextcloud.com/t/http-2-problem-with-enabling/25246>\
**Category:** ℹ️ Support\
**Created:** [December 30, 2017, 1:57pm UTC](https://help.nextcloud.com/t/http-2-problem-with-enabling/25246 "2017-12-30T13:57:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![szakes1](https://help.nextcloud.com/letter_avatar/szakes1/32/5_5575768a8748004e209b776fc1b2916d.png) [@szakes1](https://help.nextcloud.com/u/szakes1)\
**Post date:** [December 30, 2017, 1:57pm UTC](https://help.nextcloud.com/t/http-2-problem-with-enabling/25246/1 "2017-12-30T13:57:26Z")

</div>

Hi!

I want to enable HTTP/2 for Nextcloud, but it doesn’t seem to work.

**Basic info:**

- Debian 8,

- Apache/2.4.29,

* * *

**What is my problem?**

I’d like to enable HTTP/2 for my Nextcloud drive, but when I add it to my VirtualHost file, it still doesn’t load via HTTP/2.

**What did I do to enable it?**

I run my server on Debian 8, so if I wanted to have HTTP/2 enabled, I had to download Apache from testing repository, because HTTP/2 isn’t in stable repository.

After this I enabled http2 module using a command: “a2enmod http2”. It worked perfectly. All of the configuration files for http2 are in place (/etc/apache2/mods-available).

At the end I added: `"Protocols h2 http/1.1"` to my VirtualHost file which points to Nextcloud.

This in my VirtualHost file:

[https://pastebin.com/hs5hub89](https://pastebin.com/hs5hub89)

**What is the problem?**

When I access Nextcloud or Ampache (alongside Nextcloud), it still doesn’t load via HTTP/2, I also tested it with this website: “[https://tools.keycdn.com/http2-test](https://tools.keycdn.com/http2-test)” and it shows me a negative result.

What is wrong, anyone knows? Can anyone help me with that? I would be extremely glad if someone did.

---

<div class="post-metadata">

**Author:** ![lesaff](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lesaff/32/2853_2.png) [@lesaff](https://help.nextcloud.com/u/lesaff)\
**Post date:** [December 30, 2017, 2:26pm UTC](https://help.nextcloud.com/t/http-2-problem-with-enabling/25246/2 "2017-12-30T14:26:09Z")

</div>

Make sure you have your http2 module loaded

```
LoadModule http2_module modules/mod_http2.so
```

---

<div class="post-metadata">

**Author:** ![szakes1](https://help.nextcloud.com/letter_avatar/szakes1/32/5_5575768a8748004e209b776fc1b2916d.png) [@szakes1](https://help.nextcloud.com/u/szakes1)\
**Post date:** [December 30, 2017, 2:39pm UTC](https://help.nextcloud.com/t/http-2-problem-with-enabling/25246/3 "2017-12-30T14:39:50Z")

</div>

Where do I check for this?

---

<div class="post-metadata">

**Author:** ![lesaff](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lesaff/32/2853_2.png) [@lesaff](https://help.nextcloud.com/u/lesaff)\
**Post date:** [December 30, 2017, 2:53pm UTC](https://help.nextcloud.com/t/http-2-problem-with-enabling/25246/4 "2017-12-30T14:53:47Z")

</div>

I am pretty sure you can add that statement in your config

[https://httpd.apache.org/docs/2.4/howto/http2.html#page-header](https://httpd.apache.org/docs/2.4/howto/http2.html#page-header)

---

<div class="post-metadata">

**Author:** ![szakes1](https://help.nextcloud.com/letter_avatar/szakes1/32/5_5575768a8748004e209b776fc1b2916d.png) [@szakes1](https://help.nextcloud.com/u/szakes1)\
**Post date:** [December 30, 2017, 6:27pm UTC](https://help.nextcloud.com/t/http-2-problem-with-enabling/25246/5 "2017-12-30T18:27:38Z")

</div>

I checked for it, and yes, it seems to be enabled. I checked it in /etc/apache2/mods-available/http2.load file. Nextcloud still loads via HTTP/1.1, what can I do to change it?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 3:42pm UTC](https://help.nextcloud.com/t/http-2-problem-with-enabling/25246/6 "2024-12-02T15:42:11Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 1:45pm UTC](https://help.nextcloud.com/t/http-2-problem-with-enabling/25246/7 "2024-12-09T13:45:38Z")

</div>


