django app static files on the different server not get loaded

ningja nginx-forum at forum.nginx.org
Mon Jan 3 01:56:27 UTC 2022


Hi Paul,

Thank you for reply my question. We supposed to get snow tomorrow too.
Looking forward to it...
On test1 box I did curl https://test1.com and I got the landing page of the
app1.
On test1 box : curl -k https://test2.com I got the landing page of the
app2.

Please see the nginx config file on the test1 from my original post.  

Both server has their own IP. I have two separate instances of nginx on
separate servers.
I can access https://test1.com/app1 from wan.
I can access https://test2.com/app2 from lan.
I can not load static files https://test2.com/app2 from wan.

What do you mean by "with symbolic links"? My django app2 will need access
bundle files under static dir on app2.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,293219,293231#msg-293231



More information about the nginx mailing list