21 lines
526 B
Plaintext
21 lines
526 B
Plaintext
ServerName localhost
|
|
|
|
<VirtualHost *:1001>
|
|
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 http://127.0.0.1:8080/api
|
|
ProxyPassReverse /api http://127.0.0.1:8080/api
|
|
|
|
ErrorLog /dev/stderr
|
|
CustomLog /dev/stdout combined
|
|
</VirtualHost>
|