Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Seriously Simple Podcasting: .htaccess line for FastCGI servers to enable password protection for feeds. This line to be added above the WordPress rules in the .htaccess file.
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
@richpav
Copy link

richpav commented May 13, 2022

I originally ask for the equivalent Nginx setting. Never mind, I found it.

fastcgi_param HTTP_AUTHORIZATION $http_authorization;
proxy_set_header HTTP_AUTHORIZATION $http_authorization;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment