Skip to content

Instantly share code, notes, and snippets.

@cklosowski
Created November 11, 2015 15:40
Show Gist options
  • Save cklosowski/ff8dd7243de95727c29f to your computer and use it in GitHub Desktop.
Save cklosowski/ff8dd7243de95727c29f to your computer and use it in GitHub Desktop.
Possible fix for Nginx and PHP-FPM with Seriously Simple Podcasting
location ~* ^/podcast-download/ {
try_files $uri $uri/
fastcgi_index /index.php;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
}
@cklosowski
Copy link
Author

This is to be put in the server directive for your site running Seriously Simple Podcasting. It basically tells all requests to the podcast-download endpoint to process as a .php file, even though the URL states it's an .mp3, and bypasses it through to PHP-FPM.

You may need to change fastcgi_pass 127.0.0.1:9000; to match that of your PHP-FPM configuration.

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