hm_ems_report/apache/hm-ems-report.conf
Vadym Samoilenko 2c9a2e8443 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>
2026-03-11 21:58:56 +00:00

25 lines
822 B
Text

# H&M EMS Product Review Tool
# Apache Configuration
# Domain: https://ai-sandbox.oliver.solutions/hm-ems-report
# 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
<Directory /opt/hm-ems-data/campaign_images>
Options -Indexes +FollowSymLinks
AllowOverride None
Require all granted
</Directory>
# Optional: Basic Authentication
# Uncomment to enable password protection
# <Location /hm-ems-report>
# AuthType Basic
# AuthName "H&M EMS Access"
# AuthUserFile /etc/apache2/.htpasswd
# Require valid-user
# </Location>