Skip to content

Instantly share code, notes, and snippets.

@TheCraigHewitt
Created July 27, 2019 17:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheCraigHewitt/339349014e82006f15bd7f884293125c to your computer and use it in GitHub Desktop.
Save TheCraigHewitt/339349014e82006f15bd7f884293125c to your computer and use it in GitHub Desktop.
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