acoeur/bin/acoeur.conf

39 lines
1020 B
Plaintext

ServerSignature Off
<VirtualHost *:80>
ServerName acoeur
Protocols h2 h2c http/1.1
DocumentRoot /var/simpleWeb/apps/acoeur/public
<Location /author>
Require all granted
# Send back all headers, most importantly the eventual "authorization" one
Header always echo
# Do not send a 404
Redirect 204 /
# For development
Header always set authorization "test"
</Location>
</VirtualHost>
<VirtualHost *:80>
ServerName edit.acoeur
Protocols h2 h2c http/1.1
DocumentRoot /var/simpleWeb/apps/acoeur/content
<Directory /var/simpleWeb/apps/acoeur/content>
# This is special, anybody can see and edit it!
Require all granted
</Directory>
CustomLog /var/simpleWeb/log/apache/acoeur.log combined
# So that simple web editor can display eventual errors
Alias /app.log /var/simpleWeb/apps/acoeur/public/app.log
Header set Access-Control-Allow-Origin acoeur
Header set Access-Control-Allow-Methods "HEAD, GET, POST, PUT, OPTIONS, DELETE"
Header set Access-Control-Allow-Headers *
</VirtualHost>