David Taveras
March 03, 2010 05:16PM
thanks

2010/3/3 Igor Sysoev <igor@sysoev.ru>:
> On Wed, Mar 03, 2010 at 01:53:22PM -0600, David Taveras wrote:
>
>> Thanks.. but iam using this as a reverse proxy.. So I dont have that..!
>
> location ~ \.php$ {
>       proxy__pass  ....
>      ...
>       access_log /path/onlyphp.log
> }
>
>> David
>>
>> On Wed, Mar 3, 2010 at 9:26 AM, Reinis Rozitis <r@roze.lv> wrote:
>> > In your server {} block there should be *.php location defined anyways so
>> > add just the acces_log there:
>> >
>> > location ~ \.php$ {
>> >       fastcgi_pass  ....
>> >
>> >       access_log /path/onlyphp.log
>> > }
>> >
>> >
>> > rr
>> >
>> >
>> >
>> > ----- Original Message ----- From: "David Taveras" <d3taveras38d3@gmail.com>
>> > To: <nginx@sysoev.ru>
>> > Sent: Wednesday, March 03, 2010 5:13 PM
>> > Subject: Seperate log for .php files?
>> >
>> >
>> >> Hello,
>> >>
>> >> Is there anyway I can have a seperate log for a server { } that would
>> >> only log requests to *.php files ?
>> >>
>> >> Thanks.
>> >>
>> >> David
>> >>
>> >> _______________________________________________
>> >> nginx mailing list
>> >> nginx@nginx.org
>> >> http://nginx.org/mailman/listinfo/nginx
>> >>
>> >
>> > _______________________________________________
>> > nginx mailing list
>> > nginx@nginx.org
>> > http://nginx.org/mailman/listinfo/nginx
>> >
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://nginx.org/mailman/listinfo/nginx
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

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

Seperate log for .php files?

David Taveras March 03, 2010 10:20AM

Re: Seperate log for .php files?

Reinis Rozitis March 03, 2010 10:30AM

Re: Seperate log for .php files?

David Taveras March 03, 2010 02:58PM

Re: Seperate log for .php files?

Igor Sysoev March 03, 2010 03:00PM

Re: Seperate log for .php files?

David Taveras March 03, 2010 05:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 253
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