Title: Problems with NGINX
Last modified: December 18, 2023

---

# Problems with NGINX

 *  Resolved [mbaetzel](https://wordpress.org/support/users/mbaetzel/)
 * (@mbaetzel)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/problems-with-nginx/)
 * 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](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](https://wordpress.org/support/users/deepakkite/)
 * (@deepakkite)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/problems-with-nginx/#post-17287518)
 * 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](https://wordpress.org/support/users/spieziaa/)
 * (@spieziaa)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/problems-with-nginx/#post-17365833)
 * 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](http://nginx.org/).
   
   Commercial support is available at [nginx.com](http://nginx.com/).I see you, 
   Lemur Balls!
 * _Thank you for using nginx._“
 * I lost all contents!
 *  Plugin Author [Deepak Khokhar](https://wordpress.org/support/users/deepakkite/)
 * (@deepakkite)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/problems-with-nginx/#post-17367894)
 * Hi [@spieziaa](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/user-private-files/assets/icon-256x256.png?rev=2464671)
 * [File Sharing & Download Manager - User Private Files](https://wordpress.org/plugins/user-private-files/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-private-files/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-private-files/)
 * [Active Topics](https://wordpress.org/support/plugin/user-private-files/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-private-files/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-private-files/reviews/)

## Tags

 * [nginx](https://wordpress.org/support/topic-tag/nginx/)
 * [unavailable](https://wordpress.org/support/topic-tag/unavailable/)

 * 3 replies
 * 3 participants
 * Last reply from: [Deepak Khokhar](https://wordpress.org/support/users/deepakkite/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/problems-with-nginx/#post-17367894)
 * Status: resolved