Re: Info messages in the log: Connection reset by peer) while sending to client

2017-10-02 Thread Zhang Chao
HI! I think this log message isĀ irrelevant with the keepalive directive inside your upstream configuration block, it just tell you the connection was reset by the client side. On 3 October 2017 at 12:48:02, sachin.she...@gmail.com (nginx-fo...@forum.nginx.org) wrote: Hi, I had an upstream

Info messages in the log: Connection reset by peer) while sending to client

2017-10-02 Thread sachin.she...@gmail.com
Hi, I had an upstream defined in my config with keepalive 60. But the server is a legacy one and does not handle keep alive properly. So I removed the keepalive attribute and the errors I was seeing on the client from the upstream went away. But now I see a ton these info log lines: 2017/10/03

Proxy buffering and slow clients related issues

2017-10-02 Thread rnmx18
Hi, We are trying to use NGINX for caching service in low bandwidth, high latency mobile networks. The service is to stream 10-sec video segments of different types ranging from 2MB to 50MB. NGINX proxy_buffering configuration is as follows: proxy_buffering on; proxy_buffer_size

Re: 404 on try_files

2017-10-02 Thread Francis Daly
On Thu, Sep 21, 2017 at 09:18:45AM -0700, Nathan Zabaldo wrote: Hi there, > The $request_uri > > /h_32/w_36/test.jpg > > needs to be routed to > > /index.php/img/i/h_32/w_36/test.jpg What does "routed to" mean, specifically? nginx can proxy_pass to a http server or fastcgi_pass to a fastcgi s

Re: How to grab a value from a request

2017-10-02 Thread Francis Daly
On Mon, Oct 02, 2017 at 06:23:37PM -0400, halfpastjohn wrote: Hi there, > I'm setting up nginx as a proxy router for various APIs. How can I take a > specific value form the incoming request and dynamically populate it into > the upstream? In general, you can use map (http://nginx.org/r/map) wit

Re: Using map directive for multiple virtual hosts

2017-10-02 Thread Francis Daly
On Tue, Oct 03, 2017 at 05:28:28AM +1000, Nikolai Lusan wrote: Hi there, >I have a requirement to rewrite incoming URL requests for multiple > virtual hosts, each with a unique (possibly overlapping) set of incoming > requests. We have each vhost in a server block, but since the map directive

How to grab a value from a request

2017-10-02 Thread halfpastjohn
I'm setting up nginx as a proxy router for various APIs. How can I take a specific value form the incoming request and dynamically populate it into the upstream? Request: https://api.domain.com/[resource]/v2/ Upstream: https://app.domain.com/api/[resource]/v2/ I this case, I want to take [resourc

Using map directive for multiple virtual hosts

2017-10-02 Thread Nikolai Lusan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, I have a requirement to rewrite incoming URL requests for multiple virtual hosts, each with a unique (possibly overlapping) set of incoming requests. We have each vhost in a server block, but since the map directive lives in the http block I t

Re: limit_conn is dropping valid connections and causing memory leaks on nginx reload

2017-10-02 Thread Valentin V. Bartenev
On Saturday 30 September 2017 06:05:15 Dejan Grofelnik Pelzel wrote: > Hello, > > We are running the nginx 1.13.5 with HTTP/2 in a proxy_pass proxy_cache > configuration with clients having relatively long open connections. Our > system does automatic reloads for any new configuration and we rece