Skip to content

Commit

Permalink
v8.14
Browse files Browse the repository at this point in the history
- DietPi-LetsEncrypt | Enable HTTP2 on Apache when applying the cert. It is enabled by default on Lighttpd and Nginx and also on Apache it doesn't cause any issues when enabled even without HTTPS. The default config has HTTP/1.1 fallback included. However, there is no point in enabling HTTP/2 as long as HTTPS is not enabled, so we do it here instead of in DietPi-Software on Apache install.
  • Loading branch information
MichaIng committed Feb 10, 2023
1 parent cc63f52 commit cbddc13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dietpi/dietpi-letsencrypt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
# Update ServerName directive
G_CONFIG_INJECT 'ServerName[[:blank:]]' " ServerName $primary_domain" /etc/apache2/sites-available/000-default.conf '^[[:blank:]]*<'

# Enable HTTP/2
G_EXEC a2enmod http2

# Restart Apache to apply ServerName change
G_EXEC systemctl restart apache2

Expand Down

0 comments on commit cbddc13

Please sign in to comment.