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.c
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
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
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
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.
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,293219,293235#msg-293235
___
nginx mailing
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,
Sue
Posted at Nginx For
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.
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,29
Thank you. Francis. I did just as you said. location /static_app2/ {
proxy_pass https://test2.com:444; }
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,293219,293265#msg-293265
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/