acoeur/bin/acoeur.conf

39 lines
1020 B
Plaintext
Raw Normal View History

2022-11-07 09:57:42 +01:00
ServerSignature Off
2022-10-26 23:12:29 +02:00
<VirtualHost *:80>
2022-11-05 22:23:24 +01:00
ServerName acoeur
2022-11-07 09:57:42 +01:00
Protocols h2 h2c http/1.1
2022-10-26 23:12:29 +02:00
DocumentRoot /var/simpleWeb/apps/acoeur/public
2022-11-16 22:47:33 +01:00
<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>
2022-10-26 23:12:29 +02:00
</VirtualHost>
<VirtualHost *:80>
2022-11-05 22:23:24 +01:00
ServerName edit.acoeur
2022-11-07 09:57:42 +01:00
Protocols h2 h2c http/1.1
2022-10-26 23:12:29 +02:00
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 *
2022-10-26 23:12:29 +02:00
</VirtualHost>