From 2c9a2e84439817ff1c0b2f085faf9c36748fa533 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Wed, 11 Mar 2026 21:58:56 +0000 Subject: [PATCH] Update Apache config to proxy all requests through Flask Removed static file serving, everything now goes through Flask for authentication. Co-Authored-By: Claude Opus 4.6 --- apache/hm-ems-report.conf | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/apache/hm-ems-report.conf b/apache/hm-ems-report.conf index c60dcff..c93c943 100644 --- a/apache/hm-ems-report.conf +++ b/apache/hm-ems-report.conf @@ -2,17 +2,10 @@ # Apache Configuration # Domain: https://ai-sandbox.oliver.solutions/hm-ems-report -# API requests → Gunicorn backend -ProxyPass /hm-ems-report/api http://localhost:5000/api -ProxyPassReverse /hm-ems-report/api http://localhost:5000/api - -# Static files (HTML, CSS, JS) -Alias /hm-ems-report /var/www/html/hm-ems-report - - Options -Indexes +FollowSymLinks - AllowOverride None - Require all granted - +# Everything except images goes to Flask (for authentication) +ProxyPass /hm-ems-report/images ! +ProxyPass /hm-ems-report http://localhost:5000 +ProxyPassReverse /hm-ems-report http://localhost:5000 # Campaign images (served directly by Apache for better performance) Alias /hm-ems-report/images /opt/hm-ems-data/campaign_images