Thank you. Francis. I did just as you said. location /static_app2/ { proxy_pass https://test2.com:444; }by ningja - Nginx Mailing List - English
After I modified my app2 and put all my static files to static_app2 and with Francis' suggestion location = /static_app2/img/logo-2.jpg { proxy_pass https://test2.com:444; } . I was able to solve my problem. Thank you Francis and Paul.by ningja - Nginx Mailing List - English
Hi Francis, I tried your suggestion. location = /static2/img/logo-2.jpg { proxy_pass https://test2.com:444; } and I can access the img from http://test1/static2/img/logo-2.jpg. I'll try to edit my app2 django to use static2 instead static. Thank you for your suggestion, Sueby ningja - Nginx Mailing List - English
p.s. If I do curl from my local without connect vpn. curl https://test1.com and I got the landing page of the app1. curl https://test2.com I got 301.by ningja - Nginx Mailing List - English
Hi Francis, Thank you. "Yes" both apps have static directory. From the error message that seems nginx IS looking under different path "app1/static" for app1 and "app2/static" for app2 . Does it means "static" did not confuse nginx? (I am not 100% sure ) another thing I should mention : I added a URL for app2 on the app1 landing page which is django patby ningja - Nginx Mailing List - English
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 instby ningja - Nginx Mailing List - English
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 https://test1.com/app1. Test2 has a Django app2 which has static files under /app/public/static on server test2. I can access it from URL https://test2.com/app2. Everything works including static files. The issue is I need to configby ningja - Nginx Mailing List - English
I have two server test1.com and test2.com. test1 is internet public face server. Test2 is intranet only server. Both servers have nginx docker running. Test1 run a Django app1 which has static files under /app/public/static. App1 can load the static files and run correctly from URL https://test1.com/app1. Test2 has a Django app2 which has static files under /app/public/static on server test2. Frby ningja - Nginx Mailing List - English