The http output chain is empty.

2014-04-28 Thread Makailol Charls
Hello! Could some one explain what could be the reason for below alert and when exactly it can occur ? "the http output chain is empty" I have been noticing this alert in error log of Nginx-1.5.12. Thanks, Makailol ___ nginx mailing list nginx@nginx.

Re: 502 Gateway PHP

2014-04-28 Thread Scott Larson
I'm not personally a fan of telling nginx to glob all .html files for PHP processing, but maybe that's just me and unrelated. If other PHP apps are working I'd dig into the logging for that. Generally when I run into situations like this it has nothing to do with nginx and instead is something

502 Gateway PHP

2014-04-28 Thread Silvio Siefke
Hello, i try to run a database management system and no matters what i use, i become 502 Bad Gateway. the error log say siefke /var/www/siefke/log $ cat error.log 2014/04/29 00:52:05 [error] 20458#0: *1 recv() failed (104: Connection reset by peer) while reading response header from upstream

Re: mod_rpaf enabled; still apache log showing 127.0.0.1 as source !!

2014-04-28 Thread itpp2012
Might be missing this, from an old Apache config: # Configuration for mod_rpaf RPAFenable On RPAFproxy_ips 192.168.2.123 # RPAFsethostname host.your.domain # End of mod_rpaf. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249698,249710#msg-249710

Re: mod_rpaf enabled; still apache log showing 127.0.0.1 as source !!

2014-04-28 Thread Maxim Dounin
Hello! On Mon, Apr 28, 2014 at 07:43:49PM +0530, Joydeep Bakshi wrote: > Even IP get logged when disable the rpaf !!! > little confused. Please read mod_rpaf documentation for further reference, I've already provided a link. It's really not related to nginx and offtopic here. Thank you for c

Re: mod_rpaf enabled; still apache log showing 127.0.0.1 as source !!

2014-04-28 Thread Axel
You only need one. If you use mod_rpaf you have need to configure it like Maxim told you. If you change your common logformat to log x-forwarded-for headers you don't need mod_rpaf regards, Axel On 2014-04-28 16:13, Joydeep Bakshi wrote: Even IP get logged when disable the rpaf !!! little c

Re: mod_rpaf enabled; still apache log showing 127.0.0.1 as source !!

2014-04-28 Thread Joydeep Bakshi
Even IP get logged when disable the rpaf !!! little confused. On Mon, Apr 28, 2014 at 7:36 PM, Joydeep Bakshi < joydeep.bak...@netzrezepte.de> wrote: > Hello Axel & Maxim, > > I have modified the apache log format as below > > LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i

Re: mod_rpaf enabled; still apache log showing 127.0.0.1 as source !!

2014-04-28 Thread Joydeep Bakshi
Hello Axel & Maxim, I have modified the apache log format as below LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" common and get the source IP at /var/log/apache/access.log I wonder if I there is any scope to add more info in the common log as it is a

Re: mod_rpaf enabled; still apache log showing 127.0.0.1 as source !!

2014-04-28 Thread Axel
Hello, are there any advantages of using mod_rpaf instead of using and logging x-forward-for headers? regards, Axel On 2014-04-28 15:55, Maxim Dounin wrote: Hello! On Mon, Apr 28, 2014 at 07:03:28PM +0530, Joydeep Bakshi wrote: Hello list, To get the wan IP in apache log I have already en

Re: mod_rpaf enabled; still apache log showing 127.0.0.1 as source !!

2014-04-28 Thread Maxim Dounin
Hello! On Mon, Apr 28, 2014 at 07:03:28PM +0530, Joydeep Bakshi wrote: > Hello list, > > To get the wan IP in apache log I have already enabl mod_rapf in opensude > server. > > # a2enmod rpaf mod_rpaf > "rpaf" already present > > a2enmod mod_rpaf > "mod_rpaf" already present > > Here is a n

Re: mod_rpaf enabled; still apache log showing 127.0.0.1 as source !!

2014-04-28 Thread Axel
have you configured apache to log x-forward-for instead of your host header? regards, axel On 2014-04-28 15:33, Joydeep Bakshi wrote: Hello list, To get the wan IP in apache log I have already enabl mod_rapf in opensude server. # a2enmod rpaf mod_rpaf "rpaf" already present  a2enmod  mod_rp

mod_rpaf enabled; still apache log showing 127.0.0.1 as source !!

2014-04-28 Thread Joydeep Bakshi
Hello list, To get the wan IP in apache log I have already enabl mod_rapf in opensude server. # a2enmod rpaf mod_rpaf "rpaf" already present a2enmod mod_rpaf "mod_rpaf" already present Here is a nginx vhost section for passing IP to apache log [..] proxy_redirect off; # Do not redirect

Re: can multiple domain points a single nginx host with server_name ?

2014-04-28 Thread Joydeep Bakshi
Thanks to both of you On Mon, Apr 28, 2014 at 6:46 PM, Jonathan Matthews wrote: > On 28 Apr 2014 12:44, "Joydeep Bakshi" > wrote: > > is > > > > nginx [ server_name test1.com test2.com www.test3.com ] > > > > equivalent to > > > > apache [ > > servername test1.com > > serveralias test2.c

Re: Nginx as a single process

2014-04-28 Thread Maxim Dounin
Hello! On Mon, Apr 28, 2014 at 09:07:37AM -0400, nginxsantos wrote: > Hi Maxim, > > Thanks for the response. > > Are you saying if I convert the processes to threads may be through pthread > or rfork, it is not going to work? The thread model is not supported at > all? Currently most of threa

Re: can multiple domain points a single nginx host with server_name ?

2014-04-28 Thread Jonathan Matthews
On 28 Apr 2014 12:44, "Joydeep Bakshi" wrote: > is > > nginx [ server_name test1.com test2.com www.test3.com ] > > equivalent to > > apache [ > servername test1.com > serveralias test2.com www.test3.com ] > > ? As Maxim says, yes. If you have hardcoded names, i believe there are 3 ways to

Re: Nginx as a single process

2014-04-28 Thread nginxsantos
Hi Maxim, Thanks for the response. Are you saying if I convert the processes to threads may be through pthread or rfork, it is not going to work? The thread model is not supported at all? Thanks, Santos Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249686,249694#msg-249694 __

Re: Nginx as a single process

2014-04-28 Thread Maxim Dounin
Hello! On Mon, Apr 28, 2014 at 08:35:40AM -0400, nginxsantos wrote: > I tried to compile 1.6.0 with --with-threads. But, looks like this is no > longer supported. > > #--with-threads=*)USE_THREADS="$value" ;; > #--with-threads) USE_THREADS=

Re: can multiple domain points a single nginx host with server_name ?

2014-04-28 Thread Maxim Dounin
Hello! On Mon, Apr 28, 2014 at 05:13:57PM +0530, Joydeep Bakshi wrote: > Hello list, > > I am in a process to configure nginx infront of apache. For vhost having > single domain like www.mydomain.com & mydomain.com ; there is no issue to > configure by server_name directive. > > But what to do

Re: Rewrite with strange arguments

2014-04-28 Thread roinacio
Any help ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249630,249690#msg-249690 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx as a single process

2014-04-28 Thread nginxsantos
I tried to compile 1.6.0 with --with-threads. But, looks like this is no longer supported. #--with-threads=*)USE_THREADS="$value" ;; #--with-threads) USE_THREADS="pthreads";; Can anyone please comment on this. Posted at Nginx Forum: ht

Nginx as a single process

2014-04-28 Thread nginxsantos
Hi, Can anyone please help me to run nginx as a single process model (threads instead of processes). I am interested on this as I am more incline to run this with a usermode TCP like netmap-rumptcpip. Anyone has done this or investigating on this ? Thanks, Santos Posted at Nginx Forum: http://

can multiple domain points a single nginx host with server_name ?

2014-04-28 Thread Joydeep Bakshi
Hello list, I am in a process to configure nginx infront of apache. For vhost having single domain like www.mydomain.com & mydomain.com ; there is no issue to configure by server_name directive. But what to do where multiple domain points to a single apache vhost using apache server_alias direct