This topic has 3 replies, 2 voices, and was last updated 3 years ago ago by Dash
Hello, we are working on our type of download (woocommerce settings for downloadable files).
The instruction says: Using NGINX Server?
If you using NGINX server for your site along with X-Accel-Redirect/X-Sendfile or Force Downloads download method, it is necessary that you add this configuration for better security:
# Protect WooCommerce upload folder from being accessed directly.
# You may want to change this config if you are using “Redirect Only” method for downloadable products.
# Place this config towards the end of “server” block in nGinx configuration.
location ~* /wp-content/uploads/woocommerce_uploads/ {
if ( $upstream_http_x_accel_redirect = “” ) {
return 403;
}
internal;
}
Can You add that please?
Hello,
This is independent of our theme, so contact your hosting provider to get assistance.
Regards
Thanks for your answer
Tagged: download, downloadable, file, free, template, woocommerce, wordpress
The issue related to '‘Downloadable file’' has been successfully resolved, and the topic is now closed for further responses