• Resolved magicpowers

    (@magicpowers)


    hi
    in your help article
    https://docs.woocommerce.com/document/digital-downloadable-product-handling/#nginx-setting
    it says
    “if you using NGINX server for your site along with X-Accel-Redirect download method, it is necessary that you add this configuration for better security:” – and there is a code provided.

    I have confirmed that yes, my site is using the NGINX server.

    Could you please clarify for me, as I’m not a developer –

    1. is the entire text – which includes explanatory notes – on that special grey background to be inserted, or only a portion of it?
    2. Where exactly do I need to insert it?

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Peter Fabian

    (@peterfabian1000)

    Hi @magicpowers

    It might be better to contact your hosting with the instructions to make sure it’s done correctly, as they know how the HTTP server was set up.

    1. You can insert the entire text displayed with the grey background.

    2. nginx.conf file is the main configuration file for nginx server and is usually placed in of these directories:
    – /usr/local/nginx/conf,
    – /etc/nginx, or
    – /usr/local/etc/nginx

    Sometimes, though, the subconfiguration is included to the main configuration file via include directives, so the server section might come from one of the subconfiguration files.

    So generally speaking, try to locate your nginx.conf, check if you can see
    server {

    }

    section there. If not, check for include directives and find the server section relevant to your site in those, then copy and paste the section from the documentation to the server{ _paste_here_ } section.

    • This reply was modified 4 years, 12 months ago by Peter Fabian.
    Thread Starter magicpowers

    (@magicpowers)

    Hi @peterfabian1000

    thanks for your reply.
    The main confirmation for me is that I can insert the entire text. – thanks!

    The rest…is still a developer speak to me…:-) So as not to confuse subconfiguration with directives (as I have no clue what these are LOL ), I better ask my host for help. Also, their files are set up in a different way than on most servers (so they told me) and I don’t want to mess up anything at the backend unless I know exactly what I’m doing.

    I did it once – and I had to restore the whole website from backup which had issues and resulted in my website being down for several hours!.LOL

    Anyway, you have answered my main question, many thanks!

    Thread Starter magicpowers

    (@magicpowers)

    hi @peterfabian1000

    I have reopened this ticket in view of my host’s (SiteGround) reply just to give you an update (for general reference).

    Siteground have advised that “the WooCommerce directory is not accessible publicly and it is already protected and the code that is needed is already present on our servers by default thus there is no need for any further modifications”..

    so all is good.

    thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Code for NGINX Server downloads’ is closed to new replies.