502 Gateway Error - when accessing postgresql database

2016-11-15 Thread Nanoq
Hi I'm building a website with nginx, uwsgi and a postgresql database. When I want to access the database with curl -i -X POST -H 'Content-Type: application/json' -d '{"username": "test", "password": "test", "email":"test"}' xxx.xxx.xxx I get the following error: HTTP/1.1 502 Bad Gateway The ng

Two servers, one sign-in page?

2016-11-15 Thread Yongtao You via nginx
Hi, I'm new to Nginx. I'm trying to configure Nginx as a reverse proxy to 2 backend services, as follows (see below). The backend1 server is already password protected, but backend2 is not. I'm trying to route backend2 sign-in to backend1 login page. The only thing that is not working is the fol

Re: nginx-1.11.6

2016-11-15 Thread shiz
Thanks for the details. I've recompiled without the nginx-upstream-fair module and all went well. It looks unmaintened and I don't really need it. Code is 8 years old. Best! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,270963,270974#msg-270974

Re: Cancelling aio operations on Linux

2016-11-15 Thread erankor
Hi, An update on this - we found the problem happens when the number of aio contexts (defaults to 32) is exceeded. When that happens nginx falls back to using regular (synchronous) io, and for some reason this makes the kernel not send completion notification for some pending aio requests. Increas

Re: Wildcard in location directive

2016-11-15 Thread piotr.pawlowski
Thanks. This is exactly what I'have figured out and forgot to post here. Bottom line is that my approach, due to lack of knowledge, was wrong. static=false is a parameter which is not taken into account when NginX is making regex for 'location' block. 'Query string' is something I had to focus on.

Re: nginx-1.11.6

2016-11-15 Thread Ruslan Ermilov
On Tue, Nov 15, 2016 at 01:07:29PM -0500, shiz wrote: > Hi, > > I build it every time a new version is available. > > This one didn't make it. > > System is Debian 8 jessie > > (...) > > /usr/local/src/nginx/nginx-1.11.6/debian/modules/nginx-upstream-fair/ngx_http_upstream_fair_module.c: > In

Re: Wildcard in location directive

2016-11-15 Thread Francis Daly
On Tue, Nov 15, 2016 at 08:03:32AM -0500, piotr.pawlowski wrote: Hi there, > OK, so do you know how to achieve my goal? If my guess at what your goal is is correct, the following might work: == location ^~ /documents/ { if ($arg_static = false) { proxy_pass http://upstream;

Re: nginx-1.11.6

2016-11-15 Thread shiz
Hi, I build it every time a new version is available. This one didn't make it. System is Debian 8 jessie (...) /usr/local/src/nginx/nginx-1.11.6/debian/modules/nginx-upstream-fair/ngx_http_upstream_fair_module.c: In function ‘ngx_http_upstream_init_fair_rr’: /usr/local/src/nginx/nginx-1.11.6/d

Re: [nginx-announce] nginx-1.11.6

2016-11-15 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.11.6 for Windows https://kevinworthington.com/nginxwin1116 (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds of Nginx. Officially supported native Windows binaries are at nginx.org. Announce

nginx-1.11.6

2016-11-15 Thread Maxim Dounin
Changes with nginx 1.11.615 Nov 2016 *) Change: format of the $ssl_client_s_dn and $ssl_client_i_dn variables has been changed to follow RFC 2253 (RFC 4514); values in the old format are available in the $ssl_client_s_dn_legacy and $

Re: Are there plans for Nginx supporting HTTP/2 server push?

2016-11-15 Thread Alt
Hello, Andrei Wrote: --- > does not support HTTP/2 with "Server Push" (which most consider the > primary > boost in HTTP/2), however it is available in Nginx Plus (paid No, parallel requests are the primary boost of HTTP/2. Personally I'm very

Re: Load Balance - Docker

2016-11-15 Thread Yuriy Medvedev
Use listen 443 ssl; 2016-11-15 17:34 GMT+03:00 Shaun Glass : > Mmmm ... I gather that would be at the Docker Nodes. Just want nginx that > when receiving a connection just connects to either of the 3. > > On Tue, Nov 15, 2016 at 4:16 PM, Yuriy Medvedev > wrote: > >> >> 2016-11-15 17:11 GMT+03:00

Re: Load Balance - Docker

2016-11-15 Thread Shaun Glass
Mmmm ... I gather that would be at the Docker Nodes. Just want nginx that when receiving a connection just connects to either of the 3. On Tue, Nov 15, 2016 at 4:16 PM, Yuriy Medvedev wrote: > > 2016-11-15 17:11 GMT+03:00 Shaun Glass : > >> proxy_redirect > > > Where you terminate ssl? > > _

Re: Load Balance - Docker

2016-11-15 Thread Yuriy Medvedev
2016-11-15 17:11 GMT+03:00 Shaun Glass : > proxy_redirect Where you terminate ssl? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Load Balance - Docker

2016-11-15 Thread Shaun Glass
Good Day, We are testing DDC (Docker) and have 3 nodes each running a replica of the DTR and UCP. UCP - https://server.domain.com:444 DTR - https://server.domain.com:443 I am trying to setup load balancing with nginx but am getting no where. Two config files : -

Re: Wildcard in location directive

2016-11-15 Thread piotr.pawlowski
OK, so do you know how to achieve my goal? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,270949,270952#msg-270952 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Wildcard in location directive

2016-11-15 Thread Francis Daly
On Tue, Nov 15, 2016 at 07:04:42AM -0500, piotr.pawlowski wrote: Hi there, > location ~ /documents/(.*)static=false$ { > proxy_pass http://upstream; > } > > location /documents { > try_files $uri /test.html; > } > l

[SOLVED]does not work on any request on windows

2016-11-15 Thread ganadara
Add configuration. --with-select_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_stub_status_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_a

Wildcard in location directive

2016-11-15 Thread piotr.pawlowski
Gents, I am trying to setup location block which has wildcard 'inside' regex. Here is what I think should work: location ~ /documents/(.*)static=false$ { proxy_pass http://upstream; } location /documents { try_files $uri /test.html

Re: Bloking Bad bots

2016-11-15 Thread debilish99
Many thanks to all for your contributions. My conclusion is that the method I use with many bots would be slow. It seems the best option is to use nginx maps: https://forum.nginx.org/read.php?11,255678,270417#msg-270417 https://community.centminmod.com/threads/blocking-bad-or-aggressive-bots.643

Re: Bloking Bad bots

2016-11-15 Thread lists
I find Naxsi hard to debug. For me, it generated many false positives. YMMV

Re: Is this a valid request?

2016-11-15 Thread lists
The is nothing in my html that would generate that request, though the web page address is perfectly valid. I thought it be some IOS thing. ‎You know all the stuff safari generates. I'm going to ignore it. I haven