apache: Enable expires module by default

- Can be used to set the 'Expires:' header to cache static files for a long
time.

Tests:

- Without the patch 'a2query -m expires' shows that the module is not installed.
Applying the patches and restarting services shows that Apache app's setup is
run and 'a2query -m expires' shows that module is enabled.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2025-01-26 10:50:26 -05:00
1 parent e8f9783057
commit 74e908ea82
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ class ApacheApp(app_module.App):
app_id = 'apache'
_version = 13
_version = 14
def __init__(self) -> None:
"""Create components for the app."""
+1
View File
@@ -88,6 +88,7 @@ def setup(old_version: int):
webserver.enable('proxy_html', kind='module')
webserver.enable('rewrite', kind='module')
webserver.enable('macro', kind='module')
webserver.enable('expires', kind='module')
# Disable logging into files, use FreedomBox configured systemd logging
webserver.disable('other-vhosts-access-log', kind='config')