Re: 504 gateway timeouts

2018-01-04 Thread Peter Booth
Wade, I think that you are asking “hey why isn’t nginx behaving identically on MacOS and Linux when create a servlet that invokes Thread.sleep(30) before it returns a response?.” Am I reading you correctly? A flippant response would be to say: “because OS/X and Linux are different OSes th

Re: how to enable http2 for two server hosted on the same IP

2018-01-04 Thread meteor8488
Thanks for reply. Server 1 is for php and server 2 is for static files. I want to enable sndbuf on server 2. Then how can I do that? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277991,278023#msg-278023 ___ nginx mailing list nginx@nginx.

Re: nginx latency/performance issues

2018-01-04 Thread Ameer Antar
Hello, - Original Message - From: Maxim Dounin To: nginx@nginx.org Subject: Re: nginx latency/performance issues Date: 1/4/18 8:58:45 PM >With ApacheBench on an SSL host you are likely testing your SSL >configuration. Or, rather, performance of handshakes with most >secure cipher

Re: nginx latency/performance issues

2018-01-04 Thread Ameer Antar
I'm using multiple runs with these commands: ab -n100 ab -c20 -n100 Testing now on the same host eliminates the issue with the ip alias, so I can now see nginx running much faster for the 95kB file, (gzip is on, so it's probably less). Unfortunately, we have a embedded login form so if you do

Re: Re: Allow the usen of the "env" directive in contexts other than "main"

2018-01-04 Thread Maxim Dounin
Hello! On Fri, Jan 05, 2018 at 02:28:45AM +, German Jaber wrote: > What I want to be able to do is basically what this guy tried to do: > https://serverfault.com/questions/577370/how-can-i-use-environment-variables-in-nginx-conf > > Succinctly, I want to pass the value of environment variabl

Re: 504 gateway timeouts

2018-01-04 Thread Wade Girard
I am not sure what is meant by this or what action you are asking me to take. The settings, when added to nginx conf file on Mac OS server and nginx reloaded take effect immediately and work as expected, the same settings when added to nginx conf file on Ubuntu and nginx reloaded have no effect at

Re: Re: Allow the usen of the "env" directive in contexts other than "main"

2018-01-04 Thread German Jaber
What I want to be able to do is basically what this guy tried to do: https://serverfault.com/questions/577370/how-can-i-use-environment-variables-in-nginx-conf Succinctly, I want to pass the value of environment variables to my server and location contexts, and use those values in the arguments pa

Re: nginx latency/performance issues

2018-01-04 Thread Peter Booth
Are you running apache bench on the sam for different host? How big is the javascript file? What is your ab command line? If your site is to be static published (which is a great idea) why are you using SSL anyway? > On 4 Jan 2018, at 6:12 PM, eFX News Development wrote: > > Hello! Thanks for

Re: nginx latency/performance issues

2018-01-04 Thread Maxim Dounin
Hello! On Thu, Jan 04, 2018 at 06:12:38PM -0500, eFX News Development wrote: > Hello! Thanks for your response. I'm using apache bench for the > tests, simply hitting the same static javascript file (no php). > I was thinking since I'm using the same location and as long as > the tests are rep

Re: 504 gateway timeouts

2018-01-04 Thread Zhang Chao
> The version that is on the ubuntu servers was 1.10.xx. I just updated it to > > nginx version: nginx/1.13.8 > > And I am still having the same issue. > > How do I "Try to flush out some output early on so that nginx will know that Tomcat is alive." > > The nginx and tomcat connection is working f

IPv6 does not work correctly with nginx

2018-01-04 Thread Mik J via nginx
Hello, I'm trying to finish to configure nginx for ipv6 listen [::]:443 ssl;doesn't workbutlisten [fc00:1:1::13]:443 ssl;works I need to explicitly specify the ipv6 address whereas in ipv4 I don't need to # nginx -V nginx version: nginx/1.12.1 server {     listen 443 ssl; #    listen [::]:443 ssl;

Re: how do I run multiple https web sites on a single IP address

2018-01-04 Thread Kurogane
I fixed now the problem, not sure is the best way but at least working. In the two server https block you need to put all cert information (ssl_certificate bla bla) in domain2.com and www.domain2.com. I just only put cert information in www.domain2.com and domain2.com only redirect in what i put

Re: nginx latency/performance issues

2018-01-04 Thread eFX News Development
Hello! Thanks for your response. I'm using apache bench for the tests, simply hitting the same static javascript file (no php). I was thinking since I'm using the same location and as long as the tests are repeatable, using remote testing would be ok and give more realistic results. Both apache

Re: Allow the usen of the "env" directive in contexts other than "main"

2018-01-04 Thread Maxim Dounin
Hello! On Thu, Jan 04, 2018 at 01:22:15AM +, German Jaber wrote: > Is there a reason why the "env" directive is only allowed inside the "main" > contexts? The "env" directive controls which environment variables will be available in the nginx worker processes. Environment variables apply

Re: nginx latency/performance issues

2018-01-04 Thread Maxim Dounin
Hello! On Wed, Jan 03, 2018 at 09:01:16PM -0500, Ameer Antar wrote: >Hello All, >First time subscriber here, as I am new to using nginx. My question is >about latency/performance issue as compared to our previously >configured Apache server. Our web application is running on Apach

Re: how to enable http2 for two server hosted on the same IP

2018-01-04 Thread A. Schulze
meteor8488: Hi All, If I use server { listen 443 accept_filter=dataready ssl http2; } server { listen 443 http2 sndbuf=512k; } I'll get error duplicate listen options for 0.0.0.0:443 I know it's caused by http2 in server 2. probably you're wrong. T

how to enable http2 for two server hosted on the same IP

2018-01-04 Thread meteor8488
Hi All, If I use server { listen 443 accept_filter=dataready ssl http2; } server { listen 443 http2 sndbuf=512k; } I'll get error duplicate listen options for 0.0.0.0:443 I know it's caused by http2 in server 2. But how can I enable http2 on two servers

Re: 504 gateway timeouts

2018-01-04 Thread Wade Girard
The version that is on the ubuntu servers was 1.10.xx. I just updated it to nginx version: nginx/1.13.8 And I am still having the same issue. How do I "Try to flush out some output early on so that nginx will know that Tomcat is alive." The nginx and tomcat connection is working fine for all re