Re: Simple reverse proxy - 520 bad gateway

2017-03-16 Thread Jason In North Hollywood
Hi Maxim - Thanks! I found my error - even though I had SELinux on permissive, it was still blocking. I though permissive allowed, but with logging. BR On Thu, Mar 16, 2017 at 9:06 PM, Maxim Dounin wrote: > Hello! > > On Thu, Mar 16, 2017 at 10:39:19AM +0800, Jason In North Hollywood wrote: > >

Illumos/SmartOS/Solaris issue when using eventport and keepalive at the same time

2017-03-16 Thread Peter Toth
Hi all, There is a lock-up issue on Solaris derived operating systems when using "keepalive" and "use eventport" configuration directives at the same time. The issue has been described previously back in 2015 and a patch was proposed here: https://forum.nginx.org/read.php?2,259798,259798#msg-2597

Can we replace HAProxy with NGINX

2017-03-16 Thread lchennup
Hi, I have the following HAProxy configuration: global log 127.0.0.1 local1 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid --- --- tune.comp.maxlevel 5 defaults modehttp log global option

Re: server listen directive for IPV4 and IPV6

2017-03-16 Thread shiz
Excellent. Very grateful for the clarification! Maxim Dounin Wrote: --- > > If you want nginx to listen on both IPv4 and IPv6, you have to use > both > > listen 80; > > and > > listen [::]:80; > > in your configuration. > > With

Re: server listen directive for IPV4 and IPV6

2017-03-16 Thread Maxim Dounin
Hello! On Wed, Mar 15, 2017 at 11:48:11PM -0400, shiz wrote: > 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; >

Re: Simple reverse proxy - 520 bad gateway

2017-03-16 Thread Maxim Dounin
Hello! On Thu, Mar 16, 2017 at 10:39:19AM +0800, Jason In North Hollywood wrote: [...] > Error in the log is: > > 2017/03/15 22:04:27 [crit] 8647#0: *11 connect() to 10.1.1.1:8080 failed > (13: Permission denied) while connecting to upstream, client: > 112.xxx.xxx.xxx, server: sub.domain.com, r