Skip to content

Show a maintenance page for Apache upstream errors - #42

Draft
Daniel-VM wants to merge 1 commit into
BIPLAT-CIBERINFEC:devfrom
Daniel-VM:feature/apache-maintenance-page
Draft

Daniel-VM wants to merge 1 commit into
BIPLAT-CIBERINFEC:devfrom
Daniel-VM:feature/apache-maintenance-page

Conversation

@Daniel-VM

Copy link
Copy Markdown
Member

Summary

The production hostnames (web, PathoCore API, Keycloak) currently answer with Apache's default 503 Service Unavailable page behind Cloudflare: Apache is up but cannot reach the application containers.

This adds, inside the application-owned additional-apache-routes block (server context, so it applies to every VirtualHost), ErrorDocument 502/503/504 with an inline HTML page: "Building · In progress", MePRAM DataHub title, Spanish and English text, and the site colours (#4f46e5, #282461, the globals.css background and font stacks). No external requests, no new files or mounts.

  • Only Apache-generated errors are replaced: there is no ProxyErrorOverride, so application errors (including API JSON errors) still reach clients.
  • The page contains no $ or %, so the installer variable rendering leaves it untouched.

Tests

  • httpd -t and a request through a throwaway ubi9/httpd-24 container proxying to a closed port: 503 with the new page.
  • scaffold.py check (standard b4b2950, as on dev): 0 issues; the change is inside the application block.
  • Deploy on the dev host and stop the web container to see the page through Cloudflare.

Changelog note: added under the current top section; it will move to v1.2.0dev when rebased after #39.

When an upstream container is stopped or still starting, Apache returned
its default 503 page. Serve an inline page with the site colours instead
for 502/503/504. Upstream application errors are not overridden.
@Daniel-VM Daniel-VM self-assigned this Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant