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