Re: ?

Vitaliy Lisenko vlisenko.3s gmail.com
18 13:47:57 MSD 2011


 Set-Cookie    ?



18  2011. 16:15    <vharseko at xxlive.ru> :
>      ?
>
>    ,  nginx    :
>
>>    location ~* ^.*/image\.flag\.aspx$ {
>>        proxy_pass       http://shops;
>>        proxy_cache       TST;
>>        proxy_cache_key     $request_uri;
>>        proxy_cache_valid    200 30d;
>>    }
>
> HTTP/1.1 200 OK
> Cache-Control: public
> Content-Type: image/gif
> Last-Modified: Wed, 18 May 2011 08:52:18 GMT
> Server: Microsoft-IIS/7.5
> Set-Cookie: countrycode2=ru; expires=Sun, 18-May-2014 08:52:18 GMT; path=/
> X-AspNet-Version: 4.0.30319
> Date: Wed, 18 May 2011 08:52:18 GMT
> Content-Length: 962
>
>
>> location /yml.xml {
>>        proxy_pass       http://shops;
>>        proxy_cache       TST;
>>        proxy_cache_key     $host$request_uri;
>>        proxy_cache_valid    200 1d;
>>    }
>
> HTTP/1.1 200 OK
> Cache-Control: private
> Transfer-Encoding: chunked
> Content-Type: text/xml; charset=utf-8
> Content-Encoding: gzip
> Expires: Thu, 19 May 2011 08:55:55 GMT
> Last-Modified: Wed, 18 May 2011 08:55:55 GMT
> Vary: Accept-Encoding
> Server: Microsoft-IIS/7.5
> Set-Cookie: ix_person_guid=708dff8a-d62a-4db5-a1dc-1b3970bd10ca; expires=Wed, 18-May-2016 08:55:55 GMT; path=/; HttpOnly
> Content-Disposition: attachment; filename=yml.xml;
> X-AspNet-Version: 4.0.30319
> Date: Wed, 18 May 2011 08:56:27 GMT
>
>    :
>
>>    location ~* ^.+\.(jpg|jpeg|gif|js|css|doc|ico|cur|png)$ {
>>        proxy_pass       http://shops;
>>        proxy_cache       SHOPS;
>>        proxy_cache_key     $host$request_uri;
>>        proxy_cache_valid    200 30d;
>>    }
>
> HTTP/1.1 200 OK
> Cache-Control: public
> Content-Type: image/png
> Last-Modified: Wed, 18 May 2011 08:52:18 GMT
> Server: Microsoft-IIS/7.5
> X-AspNet-Version: 4.0.30319
> Date: Wed, 18 May 2011 08:52:18 GMT
> Content-Length: 17198
>
> 18.05.2011,  0:31,   ():
>
>> ,        ,   SHOPS   TST  (   )
>> ,           .
>>     ?
>>
>>
>> proxy_cache_path /var/cache/nginx/shop levels=1:2 keys_zone=SHOPS:1024m inactive=3d max_size=20g;
>> proxy_cache_path /var/cache/nginx/TST2 levels=1:2 keys_zone=TST:1024m inactive=3d max_size=20g;
>>
>>    location ~* ^.*/img.+\.png$ {
>>        proxy_pass       http://shops;
>>        proxy_cache       SHOPS;
>>        proxy_cache_key     $host$request_uri;
>>        proxy_cache_valid    200 10d;
>>    }
>>    location ~* ^.+\.(jpg|jpeg|gif|js|css|doc|ico|cur|png)$ {
>>        proxy_pass       http://shops;
>>        proxy_cache       SHOPS;
>>        proxy_cache_key     $host$request_uri;
>>        proxy_cache_valid    200 30d;
>>    }
>>    location ~* ^.*/image\.flag\.aspx$ {
>>        proxy_pass       http://shops;
>>        proxy_cache       TST;
>>        proxy_cache_key     $request_uri;
>>        proxy_cache_valid    200 30d;
>>    }
>>    location /yml.xml {
>>        proxy_pass       http://shops;
>>        proxy_cache       TST;
>>        proxy_cache_key     $host$request_uri;
>>        proxy_cache_valid    200 1d;
>>    }
>>    proxy_redirect       off;
>>    proxy_set_header      Host       $host;
>>    proxy_set_header      X-Real-IP    $remote_addr;
>>    proxy_set_header      X-Forwarded-For $proxy_add_x_forwarded_for;
>>    proxy_connect_timeout   70;
>>    proxy_send_timeout     90;
>>    proxy_read_timeout     600;
>>    proxy_buffering      on;
>>    proxy_cache        off;
>>    proxy_buffer_size     4k;
>>    proxy_buffers       4 32k;
>>    proxy_busy_buffers_size  64k;
>>    proxy_temp_file_write_size 64k;
>>    proxy_temp_path      /var/cache/nginx/proxy_temp 1 2 3;
>>    proxy_ignore_client_abort off;
>>    proxy_intercept_errors   on;
>>    proxy_cache_use_stale   error updating timeout invalid_header http_500 http_502 http_503 http_504;
>>
>>    client_max_body_size    10m;
>>    client_body_buffer_size  128k;
>>    client_body_temp_path   /var/cache/nginx/client_body_temp 1 2 3;_______________________________________________
>> nginx-ru mailing list
>> nginx-ru at nginx.org
>> http://nginx.org/mailman/listinfo/nginx-ru
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>
>


nginx-ru