Re: Response Header IF statement problem

2018-02-16 Thread Francis Daly
On Fri, Feb 16, 2018 at 01:49:59PM +, Friscia, Michael wrote: Hi there, > Thank you, this was incredibly useful and helped me think this through in > Nginx terms and I have everything working now. Thank you again! You're welcome. Good to hear that you have things working the way you want t

How to create a reverse and SSL proxy for xpra.

2018-02-16 Thread vfclists .
I want to create a reverse and SSL proxy for xpra - https://xpra.org/, a remote desktop facility for X windows, like x2go and VNC. The proxy is targeted at the HTML5 option which allows the info to be transferred via websockets. The way to connect directly to an xpra HTML5 server is to enter the

Re: Response Header IF statement problem

2018-02-16 Thread Friscia, Michael
Thank you, this was incredibly useful and helped me think this through in Nginx terms and I have everything working now. Thank you again! Minor side question, is there a variable I can use to post to a debug header to indicate if a page was newly written to the cache versus a page that was read

Re: Response Header IF statement problem

2018-02-16 Thread Francis Daly
On Thu, Feb 15, 2018 at 01:22:04PM +, Friscia, Michael wrote: Hi there, > To add one more thing. I mentioned that my testing failed. Exactly what was > failing is that the map{} block that worked and then stopped working was the > problem, the $nocache variable would always return the defau

Re: Files still on disc after inactive time

2018-02-16 Thread Maxim Dounin
Hello! On Fri, Feb 16, 2018 at 03:16:27AM -0500, Andrzej Walas wrote: > After this inactive logs I have anther logs: > [alert] 11371#0: worker process 24870 exited on signal 9 Signal 9 is SIGKILL sent to the nginx worker process. Killing nginx worker processes will obviously result in various

Re: Files still on disc after inactive time

2018-02-16 Thread Andrzej Walas
Can you answer on this: > Can you tell me what happend with downloaded part of files when I have: > [error] 16082#0: *1264804 upstream prematurely closed connection while > reading upstream > [crit] 16082#0: *1264770 pwritev() has written only 49152 of 151552 > while reading upstream > This part o

Re: Files still on disc after inactive time

2018-02-16 Thread Richard Stanway via nginx
> [alert] 11371#0: worker process 24870 exited on signal 9 This is almost certainly the cause of your problems - you need to figure out why the nginx processes are crashing and resolve that. Most likely a 3rd party module is responsible. On Fri, Feb 16, 2018 at 10:39 AM, Andrzej Walas wrote: >

Re: Files still on disc after inactive time

2018-02-16 Thread Andrzej Walas
For me 40-50 GB cache is ok, because I have multiple files like 2-5GB. Problem in my mind is this that I have settings: proxy_cache_path /ephemeral/nginx/cache levels=1:2 keys_zone=proxy-cache:4000m max_size=40g inactive=1d; but I have over 40GB on disc and files older than 1 day inact

Re: Files still on disc after inactive time

2018-02-16 Thread Peter Booth
100GB of cached files sounds enormous. What kinds of files are you caching? How large are they? How many do you have? If you look at your access log what hit rate is your cache seeing? Sent from my iPad > On Feb 16, 2018, at 3:16 AM, Andrzej Walas > wrote: > > After this inactive logs I have

Re: Files still on disc after inactive time

2018-02-16 Thread Andrzej Walas
After this inactive logs I have anther logs: [alert] 11371#0: worker process 24870 exited on signal 9 Can you explain whats happend when I have logs like this: [error] 9045#0: *1138267 readv() failed (104: Connection reset by peer) while reading upstream... I have problem like https://forum.nginx