django app static files on the different server not get loaded

ningja nginx-forum at
Sun Jan 2 21:26:40 UTC 2022

Hi Francis,

Thank you for spent time to answer my question. I am sorry for some of the
confusion here.
App1 can load the static files and run correctly from URL Test2 has a Django app2 which has static files under
/app/public/static on server test2. I can access it from URL Everything works including static files.

The issue is I need to configure nginx1 to allow people to access app2 from
the public internet. The config file I post here is from test1 server.  
With this config I can access app2 html pages from the internet (just what I
wanted) but the page did NOT try load the static files from instead it try to load the static from   How can I have the nginx to look app2's static
files under

Posted at Nginx Forum:,293219,293229#msg-293229

More information about the nginx mailing list