Re: Nginx as Reverse Proxy for multiple servers binded to proxy using UNIX sockets - how to reached in LAN

2018-10-19 Thread Stefan Müller
Hi Francis, thank you for the update 1. documentation I've read up and down the documentation and other sources. I could not find anything saying that if you run the nginx binary, you run a new instance of nginx, independent of any other. Where is it mentioned that nginx is multi inst

Re: Nginx NJS fs.writeFileSync is atomic writing and race condition prevention ?

2018-10-19 Thread Dmitry Volyntsev
On 19.10.2018 06:33, HENG wrote: Hello: I am new to Nginx NJS, and I want to write a website with NJS. I want to write a simple JSON database with NJS fs.writeFileSync ,just like Node.js LowDB. but I have no idea . Does NJS fs.writeFileSync is atomic writing and race condition prevention

Aw: Re: Encoding URL before passing it on to reverse proxied application

2018-10-19 Thread Garbage
> > Is one of these approaches possible ? > > You can easily do something like this: > >rewrite ^ /foo? break; >proxy_pass http://localhost:8080; >proxy_set_header X-Original-URI $request_uri; > > This will replace the URI as seen by the upstream server to > "/foo" without any reque