Re:

Igor Vavrjin igor.vavrjin gmail.com
19 17:30:27 UTC 2011


19  2011. 20:48  Igor Sysoev <igor  sysoev.ru> :
> On Fri, Aug 19, 2011 at 06:26:29PM +0700,   wrote:
>> .
>>
>>    :   nginx  
>>   
>>
>> KEY: nsk|GET|site.com|/page.html
>> X-Powered-By: PHP/5.3.6-6~dotdeb.0
>> Expires: Mon, 26 Jul 1997 05:00:00 GMT
>> Last-Modified: Fri, 19 Aug 2011 10:32:20 GMT
>> Content-Type: text/html; charset=UTF-8
>>
>>        - 
>>      (  )    
>> .
>>   .    ,      :)?
>
>  ,    HTTP/1.0    ?
 HTTP   (     ,   
 - ,    ) -    - 
   
N<9D>NN^@^@^@^@<FF><FF><FF><FF><FF><FF><FF><FF>ʙNN^@^@^@^@:Dv1^@^@V^@<9E>^@TP/1.1
(     ).     
less file_name -  UTF-8

>   nginx' ?
nginx version: nginx/0.8.54

>
>> server {
>>   listen *:80 default;
>>
>>   error_log /var/log/nginx/default.error.log;
>>   access_log /var/log/nginx/default.access.log;
>>
>>   charset utf-8;
>>   root /var/www/data;
>>
>>   location / {
>>     index index.php;
>>     set $path_info $uri;
>>     try_files $uri $uri/ /index.php?$args;
>>   }
>
>  :
>
>>   if ($request_method != "GET") {
>>     set $not_cached 1;
>>   }
>
>  .    fastcgi_cache_methods,    GET  HEAD.

    

>
>>   location ~ \.php$ {
>>     fastcgi_pass backend_local;
>>     include fastcgi_params;
>>     fastcgi_param PATH_INFO $path_info;
>>     fastcgi_param SERVER_NAME $host;
>>
>>     fastcgi_cache_bypass $is_args $not_cached $cookie_PHPSESSID
>> $cookie_no_nginx_cache;
>>     fastcgi_no_cache $is_args $not_cached $cookie_PHPSESSID
>> $cookie_no_nginx_cache;
>>     fastcgi_cache getpages;
>>     fastcgi_cache_valid 200 301 302 304 15m;
>>     fastcgi_cache_key
>> "$cookie_city_code|$request_method|$host|$request_uri";
>
>   
>  "$host|$uri?$args|$cookie_city_code";

    :)

>
>
> --
>  
> http://sysoev.ru
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru  nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
>


nginx-ru