ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
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 не работает есл и файл запрашивается с д ругого домена


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: access log off не работает есл и файл запрашивается с д ругого домена
  • From: "nikosid" <nginx-forum@xxxxxxxx>
  • Date: Mon, 12 Sep 2011 11:01:27 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=03dGqVpZO1B1SzOvNrJ6wlHvYTD/fC79k1/oGNO7KKk=; b=B6pb2+zh0jeimVhtl15g0ld3bopISvmgs9pttuhgJdJUb1iP6utE1ynfa5UFpM0otoxhWDZ+JUWX16MVT4aO2gdPp4887/Zb2ZOd1BJ5g3n5rJZs212CLtO4aZnwdIbK;
  • In-reply-to: <9EBA22C7-0873-4AA5-9845-2BA25D9B9140@xxxxxxxxxxxxxx>
  • References: <9EBA22C7-0873-4AA5-9845-2BA25D9B9140@xxxxxxxxxxxxxx>

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


 




Copyright © Lexa Software, 1996-2009.