Re: nginx logging with huge vhosts

2014-04-29 Thread Joydeep Bakshi
014 at 11:20 PM, Maxim Dounin wrote: > Hello! > > On Tue, Apr 29, 2014 at 04:22:45PM +0530, Joydeep Bakshi wrote: > > > Hello, > > > > How to log both access & error efficiently with nginx having huge vhost > ? > > Is there any CustomLog available to c

nginx logging with huge vhosts

2014-04-29 Thread Joydeep Bakshi
Hello, How to log both access & error efficiently with nginx having huge vhost ? Is there any CustomLog available to collect the combined_vhost information ? Is it good configuring separate access & error logs when huge vhost ? Please suggest. Thanks ___

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

2014-04-29 Thread Joydeep Bakshi
Hello list, Thanks a lot. After following your suggestions and the link Maxim shared, I have compiled the module in my server as well as put the required configuration at httpd.conf. Now the WAN IP appears at access.log of apache. BTW: the error log still comes with local IP, any way to get remot

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 %

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

2014-04-28 Thread Joydeep Bakshi
e to add more info in the common log as it is a production server. And also need the same for ErrorLog too. Any suggestion ? Thanks On Mon, Apr 28, 2014 at 7:25 PM, Maxim Dounin wrote: > Hello! > > On Mon, Apr 28, 2014 at 07:03:28PM +0530, Joydeep Bakshi wrote: > > > Hello l

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 > > > >

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

Re: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

2014-04-22 Thread Joydeep Bakshi
Dear all, Problem Solved. Here is the steps required to fix it on opensuse 13.1 varnish listen to port 80 as default in opensuse and there is no port 6081 . Hence /etc/sysconfig/varnish has to be edited to add "-a :6081" like below VARNISHD_PARAMS="-f /etc/varnish/vcl.conf -a:6081 -T:6082 -s

Re: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

2014-04-22 Thread Joydeep Bakshi
, 2014 at 2:56 PM, Maxim Dounin wrote: > Hello! > > On Tue, Apr 22, 2014 at 12:55:07PM +0530, Joydeep Bakshi wrote: > > > Hello all, > > > > My setting works well through nginx->apache but not through > > nginx->varnish->apache > > > > apac

Re: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

2014-04-22 Thread Joydeep Bakshi
Thanks Lukas, here are the O/P 324ò241^B^@^D^@^@^@^@^@^@^@^@^@377377^@^@^A^@^@^@N/VS}D^K^@B^@^@^@B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^H^@E^@^@4212277@ ^@@^F262^B^?^@^@^A^?^@^@^A 244377^W302^\241262N^@^@^@^@200ª252376(^@^@^B^D377327^A^A^D^B^A^C^C^GN/VS221D^K^@B^@^@^@B^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^H^@E

Re: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

2014-04-22 Thread Joydeep Bakshi
Hello Lukas, I have just checked and found nothing # tcpdump -vv port 6082 tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes On Tue, Apr 22, 2014 at 1:39 PM, Lukas Tribus wrote: > > Hello all, > > > > My setting works well through nginx->apache but not th

nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

2014-04-22 Thread Joydeep Bakshi
Hello all, My setting works well through nginx->apache but not through nginx->varnish->apache apache is configured to listen to port 8080 . when nginx uses proxy_pass http://127.0.0.1:8080 the sites are running fine. If I introduce varnish after nginx by [proxy_pass http://127.0.0.1:6082]

Re: how to allow apache to control SSL traffic ?

2014-04-21 Thread Joydeep Bakshi
do_handshake() failed (SSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol) while SSL handshaking to upstream Hope the info help Thanks On Mon, Apr 21, 2014 at 2:18 PM, Jonathan Matthews wrote: > On 21 Apr 2014 07:01, "Joydeep Bakshi" > wrote: > &

Re: how to allow apache to control SSL traffic ?

2014-04-21 Thread Joydeep Bakshi
do_handshake() failed (SSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol) while SSL handshaking to upstream Hope the info help Thanks On Mon, Apr 21, 2014 at 2:18 PM, Jonathan Matthews wrote: > On 21 Apr 2014 07:01, "Joydeep Bakshi" > wrote: > &

Re: how to allow apache to control SSL traffic ?

2014-04-21 Thread Joydeep Bakshi
) when nginx is down. Any clue please ? Thanks On Mon, Apr 21, 2014 at 11:31 AM, Joydeep Bakshi < joydeep.bak...@netzrezepte.de> wrote: > Hello list, > > My apache vhosts are configured to take care of SSL connections. I have > installed nginix as http accelerator. How can I

how to allow apache to control SSL traffic ?

2014-04-20 Thread Joydeep Bakshi
Hello list, My apache vhosts are configured to take care of SSL connections. I have installed nginix as http accelerator. How can I instruct nginx to pass all SSL request to apache SSL vhost ? Thanks ___ nginx mailing list nginx@nginx.org http://mailma

https not working

2014-04-17 Thread Joydeep Bakshi
Hello list, I have place nginx before apache as an accelator, and the http is working fine. But the isue is with https . Even there are some https link based on port like https://mysite.com:45 . None of the https is working. What option is available in nginx to simply handover the https protocol

Re: how to configure nginx with running apache ?

2014-04-17 Thread Joydeep Bakshi
Hello, I have installed and configured nginx for a existing domain, but I get "it works" at the browser. I have changed all port from 80 to 8080 in apache vhost and create same vhost in /etc/nginx/vhosts.d/mydomain.conf as below server { listen 80; # Default listen port server_name site.myd

Re: how to configure nginx with running apache ?

2014-04-17 Thread Joydeep Bakshi
Hello, thanks for your responses and wiki link. Regarding setup nginx before apache; I already have running vhosts with apache and a lot og .htaccess rules. Hence I have to place nginx before apache without disturbing the setup. Thanks On Thu, Apr 17, 2014 at 4:20 PM, mex wrote: > > Can anyo

how to configure nginx with running apache ?

2014-04-17 Thread Joydeep Bakshi
Greetings !! I am new to nginx and seeking some help from this list. I already have apache running with vhosts and like to install nginx as a frontend accelerator before apache. How can I configure nginx so that it can simply run with apache vhost ? Thanks ___