Hello, help to configure nginx config on a poppy

server { listen 192.168.0.122:80; server_name 192.168.0.122; root /Users/dev/Documents/Projects/app1/public; try_files $uri /sites/192.168.0.122$uri @usersite; location @usersite { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host 192.168.0.122; proxy_redirect off; proxy_pass http://192.168.0.122:8081 ; } error_page 500 502 503 504 /500.html; client_max_body_size 4G; keepalive_timeout 10; } 

The /Users/dev/Documents/Projects/app1/public/sites/192.168.0.122 are some files, everything else should be loaded from 192.168.0.122:8081

The problem is that files from the folder 192.168.0.122 are not loaded. Although, the same config works on ubunt.

What could be the problem and how to solve it?

thank

    1 answer 1

    do so

     root /Users/dev/Documents/Projects/app1/public; location / { try_files $uri /sites/192.168.0.122$uri @usersite; }