Re: need help reverse-proxy config

2017-01-09 Thread Thierry
Thx a lot ... I do understand better now. In my nginx.conf I do have: * stream { limit_conn_zone $binary_remote_addr zone=straddr:10m; upstream backendmail { server email.domain.tld:448; } } * In my server.conf I do have: * server { listen 448 ssl; error_log

Re: need help reverse-proxy config

2017-01-09 Thread Anoop Alias
main context means it come directly in nginx.conf http context means it should be put inside http{ } server context means it should be in server { } likewise.. You can search the directive like http://nginx.org/r/x_ For eg: http://nginx.org/r/stream check the context where that directi

Re: need help reverse-proxy config

2017-01-09 Thread Thierry
error_log /var/log/nginx/error.log info; events { worker_connections 1024; } stream { upstream backend { hash xxx.xxx.xxx.xxx consistent; server email.domain.tld:448; } server { listen 448; proxy_connect_timeout 1s; proxy_timeout 3s;

Re: need help reverse-proxy config

2017-01-09 Thread Anoop Alias
http://nginx.org/en/docs/stream/ngx_stream_core_module.html#stream stream should be in the main context. On Tue, Jan 10, 2017 at 10:17 AM, Thierry wrote: > proxy nginx[20076]: nginx: [emerg] "stream" directive is not allowed here > in > /etc/nginx/conf.d/reverse-proxy.conf:47 > > Posted at Ngin

Re: need help reverse-proxy config

2017-01-09 Thread Thierry
proxy nginx[20076]: nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/reverse-proxy.conf:47 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271891,271897#msg-271897 ___ nginx mailing list nginx@nginx.org http://mailma

Re: Performance test caps at 600 Mbit/s

2017-01-09 Thread oscaretu .
Hello, I don't find anything in Google about snfnettest Can you confirm that the name is OK? Kind regards, Oscar On Mon, Jan 9, 2017 at 10:02 PM, pbooth wrote: > > Both NIC supports the speed of 1000Mb/s > > How do you know? Your kernel or NIC config might be limiting you. > > iperf, snfne

Re: Performance test caps at 600 Mbit/s

2017-01-09 Thread pbooth
> Both NIC supports the speed of 1000Mb/s How do you know? Your kernel or NIC config might be limiting you. iperf, snfnettest, or etherate will show you the maximum possible bandwidth at the TCP or IP layer. If it's under 700 then you know to focus on the NIC and OS. If it's above 900 then the

Re: upstream timeouts I can not explain

2017-01-09 Thread Maxim Dounin
Hello! On Mon, Jan 09, 2017 at 09:56:54PM +0300, Руслан Закиров wrote: > On Mon, Jan 9, 2017 at 6:14 PM, Maxim Dounin wrote: > > > Hello! > > > > On Sun, Jan 08, 2017 at 05:04:47PM +0300, Руслан Закиров wrote: > > > > > Hello, > > > > > > nginx 1.10.2 [1] running on FreeBSD 10.3-RELEASE-p7 > >

Re: upstream timeouts I can not explain

2017-01-09 Thread Руслан Закиров
On Mon, Jan 9, 2017 at 6:14 PM, Maxim Dounin wrote: > Hello! > > On Sun, Jan 08, 2017 at 05:04:47PM +0300, Руслан Закиров wrote: > > > Hello, > > > > nginx 1.10.2 [1] running on FreeBSD 10.3-RELEASE-p7 > > > > We have quite a lot of "upstream timed out" errors. For example: > > > > 2017/01/08 16:

Re: need help reverse-proxy config

2017-01-09 Thread itpp2012
stream { limit_conn_zone $binary_remote_addr zone=straddr:10m; upstream backendsmtp { server smtp1.local:25; server smtp2.local:25; } server { listen 2025 ssl; error_log /logging/stream_local_smtp.log debug; ssl_certificate /nginx/crts/sdom.cert; ssl_certificate_k

need help reverse-proxy config

2017-01-09 Thread Thierry
Dear, I have a reverse-proxy in front of my two servers: web (apache2) and email (nginx-iredmail). The proxy-reverse is perfectly working with my web server running Apache2, but I am not able to make it working for my email server. The reverse-proxy and the email server are both running wi

Re: Performance test caps at 600 Mbit/s

2017-01-09 Thread CJ Ess
Out of the box Linux isn't optimized for high speed networking - if you google for linux and 1g or 10g you'll find a ton of pages about configuration changes. I think you'll want to do something like: ifconfig eth0 txqueuelen 1 ethtool -G eth0 rx 4096 tx 4096 ip route | while read x; do ip ro

Re: Performance test caps at 600 Mbit/s

2017-01-09 Thread lists
‎FYI, benchmark mentioned in the video. https://github.com/wg/wrk Wouldn't a number of test machine ls on the Internet make more sense than flogging nginx locally on your network? With VPS time being sold by the hour, seems to me you should get one VPS tester running acceptably, then clone a do

Re: having nginx listen the same port more than once

2017-01-09 Thread Maxim Dounin
Hello! On Mon, Jan 09, 2017 at 11:01:40AM +0800, he.hailo...@zte.com.cn wrote: > I observe that the nginx runs with no error if there are > duplicate listen ports configured in the http server block or > stream server block. > > is this behavior as expected? and if a request comes at such a >

Re: upstream timeouts I can not explain

2017-01-09 Thread Maxim Dounin
Hello! On Sun, Jan 08, 2017 at 05:04:47PM +0300, Руслан Закиров wrote: > Hello, > > nginx 1.10.2 [1] running on FreeBSD 10.3-RELEASE-p7 > > We have quite a lot of "upstream timed out" errors. For example: > > 2017/01/08 16:20:54 [error] 82154#0: *494223064 upstream timed out (60: > Operation t

Re: Performance test caps at 600 Mbit/s

2017-01-09 Thread Valentin V. Bartenev
On Friday 06 January 2017 10:24:06 MrFastDie wrote: > Hello, > > the last days I played a little with the NGINX settings and the tcp stack to > test the best performance. I used direct connection between my testing > machine and my server using a cat5e cable. > My nginx.conf can be found at pasteb

Re: Requests Using Internet URL fail on LAN Access

2017-01-09 Thread scoobybri
I could never find an answer to this problem so I just reinstalled Nextcloud using Apache instead on Nginx and it works flawlessly. Not sure what could have caused Nginx to not work properly in this application but after trying for a week and not getting an answer from the Nginx community, I had to

Re: X-Accel-Redirect in LUA?

2017-01-09 Thread pavelvasev
Thank you, Richard! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,228856,271874#msg-271874 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx cache mounted on tmpf getting fulled

2017-01-09 Thread omkar_jadhav_20
Yes I do have RAM of size : 1.5T and swap space of around 200G. It has been observed that swap is not getting used in this case. But it seems either OS is not clearing the RAM that fast or nginx is not able to control RAM as mentioned in the nginx configuration file. Could you please suggest what

Re: X-Accel-Redirect in LUA?

2017-01-09 Thread Richard Kearsley
Hi Yes, use ngx.exec in lua On 09/01/17 07:23, pavelvasev wrote: Have you found a solution for this, Richard? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,228856,271867#msg-271867 ___ nginx mailing list nginx@nginx.org http://mailman.ng

Re: nginx cache mounted on tmpf getting fulled

2017-01-09 Thread Matthew Slowe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 06/01/2017 05:40, omkar_jadhav_20 wrote: > Hi, > > I am using nginx as webserver with nginx version: nginx/1.10.2. For > faster access we have mounted cache of nginx of different > application on RAM.But even after giving enough buffer of size ,

Re: nginx cache mounted on tmpf getting filled 100%

2017-01-09 Thread omkar_jadhav_20
can someone please respond. Let me know if any additional information is required. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271842,271870#msg-271870 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Performance test caps at 600 Mbit/s

2017-01-09 Thread MrFastDie
The OS of the server is debian 8, at my testing machine i'm using arch linux. Both NIC supports the speed of 1000Mb/s the server got round about 600 Mb/s up and 13Mb/s down. CJ Ess Wrote: --- > Which OS? What NIC? You also have to consider the tr