Re: django app static files on the different server not get loaded

2022-01-03 Thread ningja
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

Re: How to add lua support into latest nginx version

2022-01-03 Thread Sergey A. Osokin
Hi there, On Mon, Jan 03, 2022 at 05:09:09PM -0500, graphite_123 wrote: > OS: Linux, distribution: Debian (buster) > > Currently, we using nginx:1.14.2, and to support Lua we are using > libnginx-mod-http-lua:1.14.2 package. > > We are working on upgrading Nginx to nginx:1.21.0 version, but I'm

RE: How to add lua support into latest nginx version

2022-01-03 Thread Thomas Ward
The Lua module is a third party module, part of the Open Resty variant of nginx. It will not be in the nginx.org repos and only in the OpenResty nginx repos unless you compile it and its dependencies alongside nginx directly. (not including libs that get installed via apt or packages, I mean -

How to add lua support into latest nginx version

2022-01-03 Thread graphite_123
OS: Linux, distribution: Debian (buster) Currently, we using nginx:1.14.2, and to support Lua we are using libnginx-mod-http-lua:1.14.2 package. We are working on upgrading Nginx to nginx:1.21.0 version, but I'm unable to find the compatible libnginx-mod-http-lua package. Can someone please help

Re: django app static files on the different server not get loaded

2022-01-03 Thread ningja
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

Re: django app static files on the different server not get loaded

2022-01-03 Thread ningja
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

Re: django app static files on the different server not get loaded

2022-01-03 Thread ningja
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

Re: Setting up a webDAV server

2022-01-03 Thread Francis Daly
On Sun, Jan 02, 2022 at 08:51:40AM -0500, BonVonKnobloch wrote: Hi there, > I had one part of the pathname double and could not see it. > Seemingly I have PUT & GET functionality - now for further testing and > tightening permissions. Good stuff -- it sounds like you have a thing that works well

Re: django app static files on the different server not get loaded

2022-01-03 Thread Francis Daly
On Sun, Jan 02, 2022 at 04:26:40PM -0500, ningja wrote: Hi there, > 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