server listen directive for IPV4 and IPV6

2017-03-15 Thread shiz
There is a lot of confusion in the answers I fount about it. When I installed nginx first, it was the debian jessie version 1.6.2 and the configuration to listen to both ipv4 and ipv6 was #server { # listen 80; # listen [::]:80; # # server_name example.com; # # root /var/

Simple reverse proxy - 520 bad gateway

2017-03-15 Thread Jason In North Hollywood
Trying to do a simple proxy from sub.domain.com/link1 to another server on the LAN - 10.1.1.1:8080/someotherlink1. This is what my server context looks like: (I modified the default nginx.conf) server { listen 80 default_server; listen [::]:80 default_server; server_name

Can't create forum account

2017-03-15 Thread Jason In North Hollywood
Hi everyone, I'm trying to create an account at forum.nginx.org and it keeps saying denied due to suspected spammer. I've tried from many different ISPs in a few countries (USA included), different email addresses (different domains) and nothing is working. I've tried having the captcha read to

Valid characters in nginx configuration

2017-03-15 Thread SW@EU via nginx
Hi, there can I find the description of the nginx configuration file syntax e.g. in a BNF like notation. There is defined which characters are allowed in "name" e.g. of an upstream definition? Only ASCII or UTF8, only alpha or alphanumeric and if the last, must it start with alpha. Can I use sp

Re: nginx limit_req_module with upstream limit_rate

2017-03-15 Thread Nishikubo Minoru
I noticed our nginx configuration 5000r/s limits, that is the test program must generate requests between less than 0.2msec, the tester was misconfigured the test condition. Thanks for great hint :-) On Wed, Mar 15, 2017 at 11:19 PM, Nishikubo Minoru wrote: > > If this is an exact configuration

Re: upstream sent unexpected FastCGI record: 3 while reading response header from upstream

2017-03-15 Thread jaigupta
Thank you. Nginx debug enabled for real. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272936,272966#msg-272966 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: upstream sent unexpected FastCGI record: 3 while reading response header from upstream

2017-03-15 Thread Maxim Dounin
Hello! On Wed, Mar 15, 2017 at 09:16:19AM -0400, jaigupta wrote: > I increased log level to debug and below is what I received. > > [error] 7901#7901: *47646 upstream sent unexpected FastCGI record: 3 while > reading response header from upstream, client: xx.xx.xx.xx, server: > www.x.com, re

Re: nginx limit_req_module with upstream limit_rate

2017-03-15 Thread Nishikubo Minoru
> If this is an exact configuration you've tried to test with, > you've probably tested something very different, as there is no > "logation" directive in nginx. Oh, location is correct. http { limit_req_zone fixedstring zone=upstream:1m rate=5000r/s; } server { server_name vhosta; locatio

Re: upstream sent unexpected FastCGI record: 3 while reading response header from upstream

2017-03-15 Thread jaigupta
I increased log level to debug and below is what I received. [error] 7901#7901: *47646 upstream sent unexpected FastCGI record: 3 while reading response header from upstream, client: xx.xx.xx.xx, server: www.x.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/xxx.fpm.s

Re: nginx limit_req_module with upstream limit_rate

2017-03-15 Thread Maxim Dounin
Hello! On Wed, Mar 15, 2017 at 08:47:15PM +0900, Nishikubo Minoru wrote: > We want to limit outgoing(upstream) rate with the fixed string key among > various virtual hosts as follows: > > limit_req_zone fixedstring zone=upstream:1m rate=5000r/s; > > server { > server_name vhosta; > logation

nginx limit_req_module with upstream limit_rate

2017-03-15 Thread Nishikubo Minoru
Hello, We want to limit outgoing(upstream) rate with the fixed string key among various virtual hosts as follows: limit_req_zone fixedstring zone=upstream:1m rate=5000r/s; server { server_name vhosta; logation / { limit_req zone=upstream burst=25; proxy_pass http://some_upstream; }

Re: upstream sent unexpected FastCGI record: 3 while reading response header from upstream

2017-03-15 Thread jaigupta
Thanks Maxim. Would this also log messages between Nginx and FastCGI when error occurs? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272936,272953#msg-272953 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/

Re: nginx with ssl as reverse proxy

2017-03-15 Thread Maxim Dounin
Hello! On Wed, Mar 15, 2017 at 09:16:49AM +0200, Ran Shalit wrote: > Hello, > > I have followed the article which explains how to configure nginx with > ssl as reverse proxy for Jenkins: > https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-with-ssl-as-a-reverse-proxy-for-jen

Re: upstream sent unexpected FastCGI record: 3 while reading response header from upstream

2017-03-15 Thread Maxim Dounin
Hello! On Tue, Mar 14, 2017 at 06:01:45PM -0400, jaigupta wrote: > I am getting random "upstream sent unexpected FastCGI record: 3 while > reading response header from upstream" while using Nginx with PHP7. So far I > was waiting for bug https://bugs.php.net/bug.php?id=67583 to be fixed by PHP >

Re: HTTP/2 seems slow

2017-03-15 Thread GuiltyNL
BTW I did read this: https://www.section.io/blog/Why-do-I-see-long-TTFB-with-HTTP2-in-WebPageTest/ But I would expect that the page itself would load (a bit) faster, and that is not the case: HTTP/1.1 Document Complete 1,777 sec HTTP/2 Document Complete 2,128 sec Posted at Nginx Forum: https:/

200ms delay when serving stale content and proxy_cache_background_update enabled

2017-03-15 Thread Jean-Paul Hemelaar
Hi, I noticed a delay of approx. 200ms when the proxy_cache_background_update is used and Nginx sends stale content to the client. Current setup: - Apache webserver as backend sending a slow response delay.php that simply waits for 1 second: - Nginx in front to cache the response, and send stale

HTTP/2 seems slow

2017-03-15 Thread GuiltyNL
Hi guys, I'm working on a HTTP/2 website solution and when testing we can see HTTP/2 works. The thing is that everything loads at the same time, but very slow. While the bandwith cannot be the problem. At the end HTTP/2 is a bit slower than HTTP/1.1 For example: When I use HTTP/1.1 I have 5 fi

nginx with ssl as reverse proxy

2017-03-15 Thread Ran Shalit
Hello, I have followed the article which explains how to configure nginx with ssl as reverse proxy for Jenkins: https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-with-ssl-as-a-reverse-proxy-for-jenkins Yet, I don't understand one thing, The ssl key is configured only for ngi