25 lines
719 B
Plaintext
25 lines
719 B
Plaintext
ServerName localhost
|
|
|
|
<VirtualHost *:${AP_WEB_PORT}>
|
|
DocumentRoot /var/www/html
|
|
DirectoryIndex index.html
|
|
|
|
<Directory /var/www/html>
|
|
Options -Indexes
|
|
Require all granted
|
|
Header set Cache-Control "no-cache, no-store, must-revalidate"
|
|
Header set Pragma "no-cache"
|
|
Header set Expires "0"
|
|
</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 /var/log/apache2/error.log
|
|
CustomLog /var/log/apache2/access.log combined
|
|
</VirtualHost>
|
|
|