• Resolved mbaetzel

    (@mbaetzel)


    Hello, I have the premium version of the plugin and have already written a message to support, but have not received any information after several days.

    We use an NGINX server with Multisite WordPress. The problem is that the images and files can now also be accessed by users who are not logged in.

    So https://www.domain.de/content/uploads/upf-docs/user_128_doc_1702569073.jpg

    It is not blocked or you are not redirected. There is no htaccess that is modified because it is an NGINX server.

    Is there any help or something that needs to be set differently?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Deepak Khokhar

    (@deepakkite)

    Hi,

    Thanks for reaching out. We have replied to you over the email. Let us know if that solution works for you and we will add the instructions for nginx configuration to the description/FAQ of the plugin.

    Thanks.

    spieziaa

    (@spieziaa)

    Hi, I have nginx issue on mi site.

    “Welcome to nginx!

    If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

    For online documentation and support please refer to nginx.org.
    Commercial support is available at nginx.com.I see you, Lemur Balls!

    Thank you for using nginx.

    I lost all contents!

    Plugin Author Deepak Khokhar

    (@deepakkite)

    Hi @spieziaa

    Do you see the error after installing the plugin? This plugin doesn’t configure the nginx server on it’s own. It only modifies the .htaccess file which is supported in Apache servers.

    To configure the nginx server for private files, Please try the following steps:

    Step 1. Locate nginx.conf:
    The nginx.conf file typically resides in the Nginx configuration directory. Example path: /etc/nginx/nginx.conf.
    Open nginx.conf – Use a text editor or command-line tools (vi, nano, etc.) to open the file.

    Step 2. Locate the server Block:
    Find the server block where you want to add the new location block. Ensure it’s within the appropriate context.

    Step 3. Insert the Location Block:
    Add the following code snippet inside the server block, replacing {website} with your actual website name:
    location ~ /{website}/wp-content/uploads/upf-docs/(.)$ { rewrite /{website}/wp-content/uploads/upf-docs/(.)$ /{website}?file=$1 last;
    }
    Replace {website} in the code snippet with the name of your website (the folder/directory name).

    Step 4. Save Changes:
    Save the nginx.conf file after adding the new location block.

    I hope that helps in resolving the issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problems with NGINX’ is closed to new replies.