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 <noreply@anthropic.com>
This commit is contained in:
parent
c7982183df
commit
2c9a2e8443
1 changed files with 4 additions and 11 deletions
|
|
@ -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
|
||||
<Directory /var/www/html/hm-ems-report>
|
||||
Options -Indexes +FollowSymLinks
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue