21 lines
548 B
Plaintext
21 lines
548 B
Plaintext
ServerName localhost
|
|
|
|
<VirtualHost *:${AP_WEB_PORT}>
|
|
DocumentRoot /var/www/html
|
|
DirectoryIndex index.html
|
|
|
|
<Directory /var/www/html>
|
|
Options -Indexes
|
|
Require all granted
|
|
</Directory>
|
|
|
|
# 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
|
|
</VirtualHost>
|