Re: access log off не работает если файл запрашивается с другого домена
nikosid
nginx-forum на nginx.us
Пн Сен 12 15:01:27 UTC 2011
server {
listen 80;
server_name site.com;
access_log /var/log/nginx/site.com_access.log;
error_log /var/log/nginx/site.com_error.log;
root /var/www/citysites/site.com/htdocs;
index index.php;
location ~* \.(js|jpeg|jpg|gif|png|swf)$
{
access_log off;
expires max;
}
location ~ ^/(?!js/|image/upload).+\/$
{
rewrite ^/(.+)/$ /$1 permanent;
}
location /
{
try_files $uri $uri/ @zend;
}
location ~* \.php$
{
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
fastcgi_read_timeout 600;
fastcgi_pass 127.0.0.1:9000;
}
location @zend
{
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param SCRIPT_NAME /index.php;
fastcgi_param QUERY_STRING $args;
}
location ~ /\.ht
{
deny all;
}
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,215027,215121#msg-215121
Подробная информация о списке рассылки nginx-ru