ServerName localhost DocumentRoot /var/www/html DirectoryIndex index.html Options -Indexes Require all granted # L'API Python lit l'IP réelle du client dans X-Real-IP RequestHeader set X-Real-IP "expr=%{REMOTE_ADDR}" ProxyPreserveHost On ProxyPass /api unix:/run/ap-api.sock|http://localhost/api ProxyPassReverse /api http://localhost/api ErrorLog /dev/stderr CustomLog /dev/stdout combined