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