Skip to content

Commit

Permalink
Issue FreshRSS#2446 : Remove CGIPassAuth due to potential issues with…
Browse files Browse the repository at this point in the history
… AllowOverride rights.
  • Loading branch information
rnc committed Jul 20, 2019
1 parent 46fab88 commit 6eacba1
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions p/api/.htaccess
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<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>
<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>

0 comments on commit 6eacba1

Please sign in to comment.