Re: Rev. proxying a java applet

2016-03-19 Thread Francis Daly
On Wed, Mar 16, 2016 at 06:43:53AM -0400, aruzsi wrote: Hi there, > > The applet itself will be a http request, which it looks like you have > > working. > > The start page is almost working. > First of all there are some upstream servers which are connected to > different devices (serial line)

Re: upstream server does not match virtual host

2016-03-19 Thread miky
Thank you Francis for pointing the right direction. If I understand correctly the documentation I should add proxy_set_header Host $host; considering I had the upstream server defined by: upstream webservers { server virt1:80; } I tried it but had no luck with it, I also tried $http_host; and $p

Re: HTTP/2 and HTTPS

2016-03-19 Thread Roswebnet
Ok thank you for pointing out. This version of nginx I got from NGINX repository. http://nginx.org/en/linux_packages.html#mainline deb http://nginx.org/packages/mainline/ubuntu/ wily nginx deb-src http://nginx.org/packages/mainline/ubuntu/ wily nginx It means that it was built with older version

Re: limit_req is not working with dynamically extracted user address

2016-03-19 Thread malish8632
Hi Maxim, thank you for quick response. > How did you found that limit_req uses a wrong element? We don't know if this is limit_req - in reality we were just looking into logs and I guess that's what confused us. We observed those IPs and rolled back the changes as we assumed that all requests fr

Re: proxy_ssl_certificate not working as expected

2016-03-19 Thread Maxim Dounin
Hello! On Sun, Mar 13, 2016 at 07:24:05AM -0400, elanh wrote: > Hello, > > I'm using nginx as a proxy to a backend server. > The backend server is also using nginx and enforcing client certificate > authentication using the ssl_client_certificate and ssl_verify_client > directives. > > In my n

Re: upstream server does not match virtual host - SOLVED

2016-03-19 Thread miky
Francis, Thank you very much, your help is always appreciated. It didn't work in the first place because I also had an include proxy params statement which overrided the setting you indicated. Retesting from a very basic configuration proved the solution you offered worked. At the end I kept th

Re: nginx 1.9.12 proxy_cache always returns MISS

2016-03-19 Thread shiz
Yes it's resolved. I've change the cache path yesterday and a few minutes ago, I noticed that error message: "2016/03/19 12:31:02 [emerg] 8984#8984: cache "my_zone" uses the "/tmp/nginx/dev" cache path while previously it used the "/tmp/nginx" cache path" It seems it was enough to prevent the ca

Re: Nginx proxy_path key zone

2016-03-19 Thread CJ Ess
Great, thank you! On Sat, Mar 19, 2016 at 5:19 PM, B.R. wrote: > I suppose you are talking about the proxy_cache_path directive. Its docs > > state you are defining the size of a *shared memory zone*, most probably > al

Re: Nginx proxy_path key zone

2016-03-19 Thread B.R.
I suppose you are talking about the proxy_cache_path directive. Its docs state you are defining the size of a *shared memory zone*, most probably allocated by the master process at configuration loading time and then access

Re: nginx 1.9.12 proxy_cache always returns MISS

2016-03-19 Thread B.R.
Although you stated you problem was resolved, you need to understand what you are configuring/testing. In the first message you posted, the first response URL using the cache (starting with '/kuriyamacache') did not correspond to the alleged request headers' URL ('thumbnail_0' vs 'thumbnail_1'), s

Nginx proxy_path key zone

2016-03-19 Thread CJ Ess
The value I specify for the size of my key zone in the proxy_path statement - is that a per-worker memory allocation or a shared memory zone? (i.e. if its 64mb and I have 32 processors, does the zone consume 64mb of main memory or 2gb?) ___ nginx mailing

Re: nginx 1.9.12 proxy_cache always returns MISS

2016-03-19 Thread CJ Ess
Great! =) Make sure proxy buffering stays on - that will bypass the cache if turned off, and make sure your key space is large because you'll throw 500s for everything if it runs out (I figured it would evict a key if it ran out of space, and what was a wrong assumption) On Sat, Mar 19, 2016 at 4

Re: nginx 1.9.12 proxy_cache always returns MISS

2016-03-19 Thread Lucas Rolff
Seems like it's resolved: $ curl -I http://dev.ts-export.com/kuriyamacache/images/parts/13375/thumbnail_0/1_1.jpg HTTP/1.1 200 OK Server: nginx Date: Sat, 19 Mar 2016 20:42:46 GMT Content-Type: image/jpeg Content-Length: 53491 Connection: keep-alive Last-Modified: Thu, 10 Mar 2016 05:01:30 GMT

Re: nginx 1.9.12 proxy_cache always returns MISS

2016-03-19 Thread CJ Ess
I think I've run into the problem before - move the proxypass statement from the top of the location stanza to the bottom, and I think that will solve your issue. On Sat, Mar 19, 2016 at 4:10 PM, shiz wrote: > Been playing with this for 2 days. > > proxy_pass is working correctly but the proxy_

nginx 1.9.12 proxy_cache always returns MISS

2016-03-19 Thread shiz
Been playing with this for 2 days. proxy_pass is working correctly but the proxy_cache_path remains empty whatever I make. Here's the source I use for tests: root@NC-PH-0657-10:/etc/nginx/snippets# curl -X GET -I http://www.kuriyama-truck.com/images/parts/13375/thumbnail_0/1_1.jpg HTTP/1.1 200 O

Re: dns name for upstream

2016-03-19 Thread Wandenberg Peixoto
You can try to use this module to resolve the DNS ;) https://github.com/GUI/nginx-upstream-dynamic-servers On Wed, Mar 16, 2016 at 1:34 PM, Valentin V. Bartenev wrote: > On Friday 11 March 2016 07:01:49 Frank Liu wrote: > > Hi Valentin, > > Thanks for clearing up . I was looking at the wrong mod

Re: [ANN] OpenResty 1.9.7.4 released

2016-03-19 Thread George
cheers agentzh thanks for that workaround for LibreSSL and ssl_certificiate_by_lua* incompatibility :) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265422,265450#msg-265450 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/ma

Re: upstream server does not match virtual host

2016-03-19 Thread Francis Daly
On Wed, Mar 16, 2016 at 07:33:45AM -0400, miky wrote: Hi there, > If I understand correctly the documentation I should add > proxy_set_header Host $host; What Host: header is sent by the browser to the upstream web server when things work? >From the original mail, that seems to be "virt1". So

nginx http2 pictures timeout

2016-03-19 Thread meteor8488
Hi All, After I upgrade nginx to 1.9.12 and enabled http2 for my website. I found a wired issue related with download pictures. My website is a photo-sharing websites. So on each page there are about 100-200 pictures, the size of each of them may from 10K to 500K. In the past (http and https wit

Re: dns name for upstream

2016-03-19 Thread Valentin V. Bartenev
On Friday 11 March 2016 07:01:49 Frank Liu wrote: > Hi Valentin, > Thanks for clearing up . I was looking at the wrong module. > Do you have any comments to the other two questions? 1. That will result in "502 Bad Gateway" response, and corresponding message will be written to error_log. 2.

Re: nginx http2 pictures timeout

2016-03-19 Thread Phil Lello
Are you able to test with an alternate brand of browser to isolate if this is a client or server issue? Does turning off http/2 fix the issue? It's possible but unlikely that network conditions have changed at the same time as your move to http/2. Phil Hi All, After I upgrade nginx to 1.9.12 and

Re: nginx http2 pictures timeout

2016-03-19 Thread meteor8488
Thanks for your reply. The default value is 128 for http2_max_concurrent_streams I tried to change it 64, no big difference. And I also checked http2 document, it suggested that this kind of value should not less than 100 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265430,265454#ms

Re: HTTP/2 and HTTPS

2016-03-19 Thread itpp2012
Roswebnet Wrote: --- > On US15.10 I have nginx: > > root@LIA-RP-VS-WEB:/etc/nginx/tls# nginx -V > nginx version: nginx/1.9.12 > built by gcc 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2) > built with OpenSSL 1.0.2d 9 Jul 2015 ^

nginx + openssl 1.0.2 increased memory usage

2016-03-19 Thread ajrpayne
Hello, We attempted to upgrade from nginx + openssl 1.0.1 to nginx + openssl 1.0.2, but unfortunately we ran into some memory related issues when running nginx + openssl 1.0.2. When we are running nginx + openssl 1.0.1 as a reverse proxy, our nginx instance uses about 10 gigs of memory, and aroun

[ANN] OpenResty 1.9.7.4 released

2016-03-19 Thread Yichun Zhang (agentzh)
Hi folks I am happy to announce the new formal release, 1.9.7.4, of the OpenResty web platform based on NGINX and LuaJIT: https://openresty.org/#Download Both the (portable) source code distribution and the Win32 binary distribution are provided on this Download page. The highlights of this

Re: limit_req is not working with dynamically extracted user address

2016-03-19 Thread Maxim Dounin
Hello! On Fri, Mar 18, 2016 at 09:45:58AM -0400, malish8632 wrote: > Hi, if our HTTP block looks like below where we find IP from X-Forwarded-For > using perl module it looks like zone and limit_req are not using correct > variable $user_real_ip or it is reset right after logging. > > The nginx_

Re: nginx http2 pictures timeout

2016-03-19 Thread meteor8488
Hi, Thanks for your reply. I tried to disable http/2, then this issue got fixed.So pretty sure this issue is caused by http2 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265430,265453#msg-265453 ___ nginx mailing list nginx@nginx.org htt