Skip to content

Commit

Permalink
Issue FreshRSS#2446 : Fix passing authentication headers. Use CGIPass…
Browse files Browse the repository at this point in the history
…Auth is version is high enough
  • Loading branch information
rnc committed Jul 20, 2019
1 parent 744a9e8 commit 46fab88
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions p/api/.htaccess
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<IfModule mod_setenvif.c>
SetEnvIfNoCase "^Authorization$" "(.*)" HTTP_AUTHORIZATION=$1
</IfModule>
<IfModule !mod_setenvif.c>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
</IfModule>
<IfVersion >= 2.4.13>
CGIPassAuth on
</IfVersion>
<IfVersion < 2.4.13>
<IfModule mod_setenvif.c>
SetEnvIfNoCase "Authorization" "(.*)" HTTP_AUTHORIZATION=$1
</IfModule>
<IfModule !mod_setenvif.c>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
</IfModule>
</IfVersion>

0 comments on commit 46fab88

Please sign in to comment.