Skip to content

Instantly share code, notes, and snippets.

@timersys
Created March 6, 2015 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timersys/13af6af06ea0bbb38c73 to your computer and use it in GitHub Desktop.
Save timersys/13af6af06ea0bbb38c73 to your computer and use it in GitHub Desktop.
Protect files in Easy Digital Downloads + Nginx
#EDD + Nginx - protect your files
location ~ ^/wp-content/uploads/edd/(.*?)\.zip$ {
rewrite / permanent;
}
@myprinting2u
Copy link

where the location file part in this code?

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