Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: access log off не работает есл и файл запрашивается с д ругого домена
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 mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|