Issue #14: Fix Apache version detection and related configuration for more flexibility.