Welcome! Log In Create A New Profile

Advanced

Re: custom access_log per location /

November 17, 2009 12:03AM
I have the same problem.

------------------------------------------------------------------------

log_format access '$remote_addr\t-\t$remote_user\t[$time_local]\t"$request"\t'
'$status\t$body_bytes_sent\t"$http_referer"\t'
'"$http_user_agent"\t$http_x_forwarded_for';

access_log /d1/logs/access.log access;

#limit_conn crawler 20;

location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}

location ~ .*\.(js|css)?$
{
expires 1h;
}

location /noresult_dispatch/ {
access_log /d1/logs/noresult_dispatch-access.log access;
}


-------------------------
"/d1/logs/noresult_dispatch-access.log " filesize is 0.
Subject Author Posted

custom access_log per location /

houseofmore September 08, 2009 08:32PM

Re: custom access_log per location /

Jim Ohlstein September 08, 2009 09:59PM

Re: custom access_log per location /

bit_kevin November 17, 2009 12:03AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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