Nextcloud version (eg, 29.0.5): Nextcloud Hub 8 (29.0.3)
Operating system and version (eg, Ubuntu 29.04): Ubuntu 22.04.4 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52 (Ubuntu)
PHP version (eg, 8.3): 8.1.2-1ubuntu2.18 (cli)
The issue you are facing:
I am not able to activate HTTP/2 or HTTP/3.
I did everything from the documentation and apache2 how-tos but only http/1.1 is recognized.
This is the apache file:
cat /etc/apache2/sites-available/01-cloud.konzeptgeil.com-ssl.conf
<VirtualHost *:80>
ServerName cloud.konzeptgeil.com
ServerAdmin webmaster@konzeptgeil.com
DocumentRoot /var/www/nextcloud/
Redirect permanent / https://cloud.konzeptgeil.com/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =cloud.konzeptgeil.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
Protocols h2 h2c http/1.1
H2Push on
H2PushPriority * after
H2PushPriority text/css before
H2PushPriority image/jpg after 32
H2PushPriority image/jpeg after 32
H2PushPriority image/png after 32
H2PushPriority application/javascript interleaved
ServerName cloud.konzeptgeil.com
ServerAdmin webmaster@konzeptgeil.com
DocumentRoot /var/www/nextcloud/
<Directory "/var/www/nextcloud/">
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; preload"
</IfModule>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
#ProxyPass Einstellung bspw. für Jellyfin unter subpath cloud.konzeptgeil.com/jellyfin
ProxyPass "/sabnzbd" "http://localhost:8080/sabnzbd"
ProxyPassReverse "/sabnzbd" "http://localhost:8080/sabnzbd"
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
SSLCertificateFile /etc/letsencrypt/live/cloud.konzeptgeil.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/cloud.konzeptgeil.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
wolf@frida:/var/www/nextcloud$ cat /etc/apache2/conf-available/http2.conf
<IfModule http2_module>
Protocols h2 h2c http/1.1
H2Direct on
H2StreamMaxMemSize 5120000000
</IfModule>
wolf@frida:/var/www/nextcloud$ sudo a2enconf http2
Conf http2 already enabled