How to enable HTTP/2 in ISPmanager

"Web server settings" are common web server parameters for all sites on the VPS. Most often HTTP/2 is enabled here: the browser loads a page with all its images, styles and scripts in parallel over one connection, so a site with many files opens noticeably faster.

HTTP/2 requirements

  • Nginx 1.12 or newer with OpenSSL 1.0.2k or newer. Current Ubuntu, Debian and AlmaLinux meet this. In OpenLiteSpeed HTTP/2 is on by default.
  • The site has an issued and enabled SSL certificate. Browsers do not use HTTP/2 without HTTPS: Let's Encrypt.

Enable HTTP/2

  1. "Navigation board" → "Web server settings".
  2. Tick "Enable HTTP/2".
  3. Click "Save". The panel restarts Nginx.
Web server settings
Web server settings

HTTP/2 is enabled for all sites with an issued and enabled certificate. New sites with SSL get it automatically.

Check

curl -sI --http2 https://example.com | head -1
# response: HTTP/2 200
nginx -T 2>/dev/null | grep -c http2

In the browser: developer tools → "Network", the "Protocol" column shows h2.

Other settings on this page

  • "Enable Web disk" — users access their files over WebDAV like a network drive. Requires Apache in ITK mode.
  • "Disable open_basedir by default" — for new sites. open_basedir stops scripts from reading files outside the site folder. Do not disable it without a reason.
  • "Client max body size" — how many MB can be uploaded through the panel (file manager, import).
  • "Enable access to external applications over SSL" — phpMyAdmin and webmail open over HTTPS with the panel certificate on a separate port. Open the port in the firewall: Firewall.

After "Save" the web server restarts and sites are unavailable for a few seconds. Change settings at a quiet time.

If the site runs through Cloudflare, the browser sees the Cloudflare protocol, not your VPS. Check with curl against the server IP using --resolve.

Questions and answers
HTTP/2 works only for sites with SSL. Issue a certificate first.
Run curl -sI --http2 https://example.com: the first line of the response is HTTP/2 200. Or in the browser: developer tools → Network, the Protocol column shows h2.
"Web server settings" → "Client max body size". For uploads through the site also raise upload_max_filesize and post_max_size in PHP.