# Paste into WHM > Apache Configuration > Include Editor.
# Sends /api/* on the domain to the dockerized Flask backend on this same server's IP:8000
# (matches docker-compose.yml's "8000:8000" port mapping). Everything else keeps being served
# as static files from public_html by Apache itself, so the browser sees ONE origin
# (pandabugsreporting.com) and the existing session cookie / same-origin fetch calls need no
# CORS changes.
<IfModule mod_proxy.c>
    ProxyPreserveHost On
    ProxyPass /api http://97.74.90.109:8000/api
    ProxyPassReverse /api http://97.74.90.109:8000/api
</IfModule>
