Use sub-url to identify the different server

2019-01-09 Thread nevereturn01
Hi experts, I have 2 internal web hosts & 1 dedicate Nginx as reverse proxy, eg 10.1.1.1 & 10.1.1.2 Now, I need to access the different hosts via sub-url. eg: 1. https://www.domain.com/site1 -> https://10.1.1.1/ https://www.domain.com/site1/ui -> https://10.1.1.1/ui/ 2. https://www.doma

Re: Nginx hang and do not respond with large number of network connection in FIN_WAIT state

2019-01-09 Thread Peter Booth via nginx
The important question here is not the connections in FIN_WAIT. It’s “why do you have so many sockets in ESTABLISHED state?” First thing to do is to run netstat -ant | grep tcp and see where these connections are to. Do you have a configuration that is causing an endless loop of requests? Sent

Nginx hang and do not respond with large number of network connection in FIN_WAIT state

2019-01-09 Thread Anoop Alias
Hi, Have had a really strange issue on a Nginx server configured as a reverse proxy wherein the server stops responding when the network connections in ESTABLISHED state and FIN_WAIT state in very high compared to normal working If you see the below network graph, at around 00:30 hours there is a

Re: I need my “bad user agent” map not to block my rss xml file

2019-01-09 Thread li...@lazygranch.com
On Wed, 9 Jan 2019 08:20:05 + Francis Daly wrote: > On Tue, Jan 08, 2019 at 07:30:44PM -0800, li...@lazygranch.com wrote: > > Hi there, > > > Stripping down the nginx.conf file: > > > > server{ > > location / { > > root /usr/share/nginx/html/mydomain/public_html; > > if ($badage

Re: Is there a way to get the raw request from the client in a handler?

2019-01-09 Thread Maxim Dounin
Hello! On Wed, Jan 09, 2019 at 03:16:16PM +0100, Ottavio Campana wrote: > Dear Maxim, > > in the nginx documentation > http://nginx.org/en/docs/http/ngx_http_core_module.html#var_request I find > > $request full original request line > > How is this variable populated? I was expecting that thi

Re: Cache vs expires time

2019-01-09 Thread Maxim Dounin
Hello! On Tue, Jan 08, 2019 at 09:55:30AM +0200, Andrei wrote: > Is there a way to conditionally use proxy_ignore_headers? I'm trying to > only ignore headers for requests which have $skip_cache = 0 for example If you want different proxy_ignore_headers settings for different requests, you have

Re: Is there a way to get the raw request from the client in a handler?

2019-01-09 Thread Ottavio Campana
Dear Maxim, in the nginx documentation http://nginx.org/en/docs/http/ngx_http_core_module.html#var_request I find $request full original request line How is this variable populated? I was expecting that this variable is taken from an internal buffer. Or is it reconstructed? Thank you, Ottavio

Re: Is there a way to get the raw request from the client in a handler?

2019-01-09 Thread Maxim Dounin
Hello! On Wed, Jan 09, 2019 at 10:52:11AM +0100, Ottavio Campana wrote: > I am proceeding developing my module. > > Is there a way to get the raw HTTP request from a ngx_http_request_t ? No. E.g., there is no such thing as "raw HTTP request" when using HTTP/2. -- Maxim Dounin http://mdounin

Is there a way to get the raw request from the client in a handler?

2019-01-09 Thread Ottavio Campana
Hello, I am proceeding developing my module. Is there a way to get the raw HTTP request from a ngx_http_request_t ? Thank you, Ottavio -- Non c'è più forza nella normalità, c'è solo monotonia ___ nginx mailing list nginx@nginx.org http://mailman.ngi

Re: I need my “bad user agent” map not to block my rss xml file

2019-01-09 Thread Francis Daly
On Tue, Jan 08, 2019 at 07:30:44PM -0800, li...@lazygranch.com wrote: Hi there, > Stripping down the nginx.conf file: > > server{ > location / { > root /usr/share/nginx/html/mydomain/public_html; > if ($badagent) { return 403; } > } > location = /feeds { > try_files $uri $