Private Download Links on NGINX
-
Hello,
I’m using the free version of Prevent Direct Access. We’re using WP Engine and I have asked them to add the following rules to the NGINX server:
rewrite wp-content/uploads/_pda(\/[A-Za-z0-9_@.\/&+-]+)+\.([A-Za-z0-9_@.\/&+-]+)$ "/index.php?pda_v3_pf=$1&is_direct_access=true&file_type=$2" last; rewrite private/([a-zA-Z0-9-_.]+)$ "/index.php?pda_v3_pf=$1" last;
I’m told the rules were added, saved, and then they regenerated the NGINX Config. I am told they cannot restart the NGINX server.
I’m able to load files using the protected links, but I am getting “Page Not Found” when trying to load the private download link. I then tried adding the PDA Gold version 3.0 and above redirect rules from the How to make Prevent Direct Access work on WP Engine page. I’m still unable to load private download links.
I reached back out to WP Engine and am told that NGINX rules will overrule redirects, so I had the NGINX rules removed. I still cannot load a private download link.
I have cleared server and browser cache serveral times. Still no luck.
Our goal is to be able to share these private URLs with specific front facing users of the site. We just need the URLs to be private.
Am I missing a step to get these private download links to work?
- The topic ‘Private Download Links on NGINX’ is closed to new replies.