Files
Kine-frontend/misc/010-configurateur.conf

40 lines
1.4 KiB
ApacheConf

Listen 80
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin vincent.benoit@benserv.fr
DocumentRoot /var/www/app-configurateur
<Directory /var/www/app-configurateur/*>
Order Allow,Deny
Allow from all
AllowOverride none
Require all granted
Header always set Access-Control-Allow-Origin "*"
Header always add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header always add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
Header always add Access-Control-Expose-Headers "Content-Security-Policy, Location"
Header always add Access-Control-Max-Age "3600"
</Directory>
<Location /api>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:5000/api
ProxyPassReverse http://127.0.0.1:5000/api
</Location>
LogLevel info
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet