Quantcast
Channel: WordPress.org Forums » [WP-Filebase Download Manager] Support
Viewing all articles
Browse latest Browse all 1341

Gwyneth Llewelyn on "[Plugin: WP-Filebase Download Manager] What has to be done to make it nginx compatible?"

$
0
0

Hi,

A few people posted some success in using WP-Filebase with nginx. I wonder what configuration you guys have?

As far as I can see, WP-Filebase internally redirects all links, to, say, /wp-content/uploads/filebase/my-file.jpg (this is where my files are stored) to /download/my-file.jpg

To nginx, this looks like a request for a static file.

I was assuming that WP-Filebase would add some redirects on .htaccess, but it doesn't seem to be the case: I'm a bit shaky on that, but I believe that it relies on WP's own (internal) rewriting API to deal with that.

I can certainly do a rewrite rule in nginx to change, say /download/* to /wp-content/uploads/filebase/* — nginx should then handle it as a static file download and should work. However, this sidesteps the protection afforded by WP-Filebase are lost. (Also, I couldn't make it work, but that might be due to my newbie-ness with the more intricate aspects of nginx configuration :) )

https://wordpress.org/plugins/wp-filebase/


Viewing all articles
Browse latest Browse all 1341

Trending Articles