Our Prevent Direct Access Gold is working well with Plesk hosting. However, when enabling NGINX as your cache server, you must configure your NGINX settings so that it continues working perfectly with our plugin.
Under your website & domain, go to NGINX settings:
- Disable “Serve static files directly by nginx” option
- Under “Disable caching for locations”, input these:
/private/* /wp-content/uploads/_pda/*
- Under “Additional nginx directives”, input these rules on top:
rewrite wp-content/uploads(/_pda/.*\.\w+)$ "/index.php?pda_v3_pf=$1" last; if (!-e $request_filename) { set $test P; rewrite private/([a-zA-Z0-9-_]+)$ "/index.php?pda_v3_pf=$1&pdav3_rexypo=ymerexy" last; }