mirror of
https://github.com/flarum/flarum.git
synced 2025-11-28 00:00:50 -05:00
Use better way of ensuring Authorization header
This will need some testing though
This commit is contained in:
parent
38ea2b5d49
commit
5aa4530447
@ -1,6 +1,8 @@
|
|||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
|
|
||||||
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||||
|
|
||||||
RewriteRule ^api(.*)$ api.php [QSA,L]
|
RewriteRule ^api(.*)$ api.php [QSA,L]
|
||||||
RewriteRule ^admin(.*)$ admin.php [QSA,L]
|
RewriteRule ^admin(.*)$ admin.php [QSA,L]
|
||||||
|
|
||||||
@ -8,7 +10,3 @@
|
|||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^(.*)$ index.php [QSA,L]
|
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<IfModule mod_wsgi.c>
|
|
||||||
WSGIPassAuthorization On
|
|
||||||
</IfModule>
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user