-
Notifications
You must be signed in to change notification settings - Fork 7
/
site.conf
34 lines (30 loc) · 1.23 KB
/
site.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<VirtualHost *:443>
DocumentRoot "/app/web/"
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile "/tls/server.cert"
SSLCertificateKeyFile "/tls/server.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /app/web>
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
</IfModule>
SetEnv AccessControlAllowOrigin="*"
SetEnvIf Origin "^(.*)$" AccessControlAllowOrigin=$0
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
Header add Access-Control-Allow-Credentials true
Header add Access-Control-Allow-Headers "authorization, content-type, dpop"
Header add Access-Control-Allow-Methods "GET, PUT, POST, OPTIONS, DELETE, PATCH"
Header add Accept-Patch: application/sparql-update
Header add Access-Control-Expose-Headers: "Accept-Patch"
</VirtualHost>