Welcome! Log In Create A New Profile

Advanced

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

Maxim Dounin
April 28, 2014 10:48AM
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 cooperation.

>
>
>
>
> On Mon, Apr 28, 2014 at 7:36 PM, Joydeep Bakshi <
> joydeep.bakshi@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\"
> > \"%{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 production server. And also need the same for ErrorLog too.
> >
> > Any suggestion ?
> >
> > Thanks
> >
> >
> >
> > On Mon, Apr 28, 2014 at 7:25 PM, Maxim Dounin <mdounin@mdounin.ru> 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 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 this proxy - It needs to be
> >> > pass-through
> >> > proxy_set_header Host $host;
> >> > proxy_set_header X-Real-IP $remote_addr;
> >> > proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> >> > proxy_set_header X-Server-Address $server_addr;
> >> > proxy_pass_header Set-Cookie;
> >> > [......]
> >> >
> >> > After restarting both apache and nginx, the apache log for that specific
> >> > vhost still showing 127.0.0.1 as source IP at apache log.
> >> >
> >> > Am I missing something ?
> >>
> >> Most notably, you've missed configuration of mod_rpaf. It needs
> >> to be enabled in configuration, and you have to at least configure
> >> IP address it will accept headers from, as well as a header to
> >> look into.
> >>
> >> http://www.stderr.net/apache/rpaf/
> >>
> >> --
> >> Maxim Dounin
> >> http://nginx.org/
> >>
> >> _______________________________________________
> >> nginx mailing list
> >> nginx@nginx.org
> >> http://mailman.nginx.org/mailman/listinfo/nginx
> >>
> >
> >

> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

Joydeep Bakshi April 28, 2014 09:34AM

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

Axel April 28, 2014 09:48AM

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

Maxim Dounin April 28, 2014 09:56AM

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

Axel April 28, 2014 10:04AM

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

Joydeep Bakshi April 28, 2014 10:08AM

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

Joydeep Bakshi April 28, 2014 10:16AM

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

Axel April 28, 2014 10:44AM

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

Maxim Dounin April 28, 2014 10:48AM

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

itpp2012 April 28, 2014 11:52AM

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

Joydeep Bakshi April 29, 2014 03:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 160
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready