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.
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!
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.