Geef de Authorization-header door aan PHP (Apache/PHP-FPM strippen hem)
@@ -1,5 +1,15 @@
1
1
Options -Indexes
2
2
DirectoryIndex index.php
3
4
# Apache/PHP-FPM strips the Authorization header by default; pass it to PHP for Bearer API keys.
5
<IfModule mod_rewrite.c>
6
RewriteEngine On
7
RewriteCond %{HTTP:Authorization} .
8
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
9
</IfModule>
10
<IfModule mod_setenvif.c>
11
SetEnvIf Authorization "(.+)" HTTP_AUTHORIZATION=$1
12
</IfModule>
3
13
<FilesMatch "^(README\.md|router\.php)$">
4
14
Require all denied
5
15
</FilesMatch>
@@ -1,5 +1,15 @@1
Options -Indexes1
Options -Indexes2
DirectoryIndex index.php2
DirectoryIndex index.php3
4
# Apache/PHP-FPM strips the Authorization header by default; pass it to PHP for Bearer API keys.5
<IfModule mod_rewrite.c>6
RewriteEngine On7
RewriteCond %{HTTP:Authorization} .8
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]9
</IfModule>10
<IfModule mod_setenvif.c>11
SetEnvIf Authorization "(.+)" HTTP_AUTHORIZATION=$112
</IfModule>3
<FilesMatch "^(README\.md|router\.php)$">13
<FilesMatch "^(README\.md|router\.php)$">4
Require all denied14
Require all denied5
</FilesMatch>15
</FilesMatch>