Downloadable file - by Dash - on WordPress WooCommerce support

This topic has 3 replies, 2 voices, and was last updated 3 years ago ago by Dash

  • Avatar: Dash
    Dash
    Participant
    October 28, 2021 at 19:07

    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?

    2 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 29, 2021 at 09:32

    Hello,

    This is independent of our theme, so contact your hosting provider to get assistance.

    Regards

    Avatar: Dash
    Dash
    Participant
    October 29, 2021 at 10:52

    Thanks for your answer

  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘Downloadable file’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.