fix: enable mod_headers and mod_expires Apache modules by default by AaronFeledy · Pull Request #244 · lando/php
Adds .htaccess to 8.4 example that sets a custom header via mod_headers and enables mod_expires. Both tests expected to fail since the php-apache startup command only runs 'a2enmod rewrite'. Refs: lando/lando#976, #243
The php-apache startup command only enabled mod_rewrite. This meant mod_headers and mod_expires were available in the Debian image but never activated, causing silent failures for .htaccess directives that depend on them (CORS headers, caching, security headers). This affects every recipe using via: apache (Drupal, WordPress, Laravel, Backdrop, etc). Closes #243 Refs: lando/lando#976
changed the title
test: add mod_headers and mod_expires verification tests
fix: enable mod_headers and mod_expires Apache modules by default
This was referenced
Mar 8, 2026This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters